Refactor entire Handwired K552 keyboard (#18066)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user