diff options
author | HorrorTroll <sonicvipduc@gmail.com> | 2022-12-30 08:04:01 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-30 12:04:01 +1100 |
commit | 724aa3a4b256ccb058e4ef86c882167635d6815d (patch) | |
tree | e3c13a9e983fff434fa7919973c2e0708bd9dae4 /keyboards/horrortroll/handwired_k552/rules.mk | |
parent | 87cace28a62a9a7e156ca03201488a46915cf8ec (diff) |
Refactor entire Handwired K552 keyboard (#18066)
Diffstat (limited to 'keyboards/horrortroll/handwired_k552/rules.mk')
-rw-r--r-- | keyboards/horrortroll/handwired_k552/rules.mk | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/keyboards/horrortroll/handwired_k552/rules.mk b/keyboards/horrortroll/handwired_k552/rules.mk index f29c92f64c..9a91a7a379 100644 --- a/keyboards/horrortroll/handwired_k552/rules.mk +++ b/keyboards/horrortroll/handwired_k552/rules.mk @@ -1,11 +1,17 @@ +SRC += lib/logo.c + # MCU name MCU = STM32F103 -MCU_LDSCRIPT = k552_f103 -BOARD = k552 - # Bootloader selection -BOOTLOADER = stm32duino +# Cannot use `BOOTLOADER = stm32duino` due to the need to override +# `MCU_LDSCRIPT`, therefore all parameters need to be specified here manually. +OPT_DEFS += -DBOOTLOADER_STM32DUINO +MCU_LDSCRIPT = STM32F103xC_stm32duino_bootloader +BOARD = STM32_F103_STM32DUINO +BOOTLOADER_TYPE = stm32duino +DFU_ARGS = -d 1EAF:0003 -a 2 -R +DFU_SUFFIX_ARGS = -v 1EAF -p 0003 # Build Options # change yes to no to disable @@ -19,8 +25,9 @@ NKRO_ENABLE = yes # Enable N-Key Rollover BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow AUDIO_ENABLE = no # Audio output -NO_USB_STARTUP_CHECK = yes -LTO_ENABLE = yes + +# Enter lower-power sleep mode when on the ChibiOS idle thread +OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE # RGB Matrix enabled RGB_MATRIX_ENABLE = yes @@ -31,4 +38,8 @@ OLED_ENABLE = yes OLED_DRIVER = SSD1306 WPM_ENABLE = yes +# Wear-levelling driver +EEPROM_DRIVER = wear_leveling +WEAR_LEVELING_DRIVER = spi_flash + LAYOUTS = tkl_ansi |