summaryrefslogtreecommitdiff
path: root/keyboards/rocketboard_16/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/rocketboard_16/rules.mk')
-rw-r--r--keyboards/rocketboard_16/rules.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/keyboards/rocketboard_16/rules.mk b/keyboards/rocketboard_16/rules.mk
index b1450c7794..f8e2b217c2 100644
--- a/keyboards/rocketboard_16/rules.mk
+++ b/keyboards/rocketboard_16/rules.mk
@@ -2,7 +2,18 @@
MCU = STM32F103
# Bootloader selection
-BOOTLOADER = stm32duino
+# BOOTLOADER = stm32duino
+
+# Custom loader configuration
+MCU_LDSCRIPT = STM32F103xB_stm32duino_bootloader
+OPT_DEFS += -DBOOTLOADER_STM32DUINO
+BOARD = STM32_F103_STM32DUINO
+STM32_BOOTLOADER_ADDRESS = 0x80000000
+DFU_ARGS = -d 1EAF:0003 -a 2 -R
+DFU_SUFFIX_ARGS = -v 1EAF -p 0003
+
+# Extra include
+SRC += keycode_lookup.c
# Build Options
# change yes to no to disable
@@ -24,5 +35,9 @@ OLED_ENABLE = yes
OLED_DRIVER = SSD1306
ENCODER_ENABLE = yes
+RAW_ENABLE = yes # Enables HID RAW communication between the board and the PC
+
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
+
+LTO_ENABLE = yes