summaryrefslogtreecommitdiffstats
path: root/keyboards/horrortroll/handwired_k552/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/horrortroll/handwired_k552/rules.mk')
-rw-r--r--keyboards/horrortroll/handwired_k552/rules.mk23
1 files changed, 16 insertions, 7 deletions
diff --git a/keyboards/horrortroll/handwired_k552/rules.mk b/keyboards/horrortroll/handwired_k552/rules.mk
index f29c92f64c..9f0cc2d7a0 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 = k552_f103
+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,6 @@ OLED_ENABLE = yes
OLED_DRIVER = SSD1306
WPM_ENABLE = yes
-LAYOUTS = tkl_ansi
+# Wear-levelling driver
+EEPROM_DRIVER = wear_leveling
+WEAR_LEVELING_DRIVER = spi_flash