diff options
author | HorrorTroll <sonicvipduc@gmail.com> | 2022-12-30 07:59:55 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-30 11:59:55 +1100 |
commit | 5fa2aab41e295f05bcfd14e93745b51b15938015 (patch) | |
tree | 40371bacfe342672d696cde2208c89e492b9a8d7 /keyboards/phage_studio/pila87/rules.mk | |
parent | ced8142847e7c6a1e0e260017131e34e3da1b0ff (diff) |
Added support keyboard Pila87 / XM87 PRO (#18919)
Diffstat (limited to 'keyboards/phage_studio/pila87/rules.mk')
-rw-r--r-- | keyboards/phage_studio/pila87/rules.mk | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/keyboards/phage_studio/pila87/rules.mk b/keyboards/phage_studio/pila87/rules.mk new file mode 100644 index 0000000000..489fa40167 --- /dev/null +++ b/keyboards/phage_studio/pila87/rules.mk @@ -0,0 +1,38 @@ +# MCU name +MCU = STM32F103 + +# Bootloader selection +# 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 = STM32F103xB_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 +# +BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +MOUSEKEY_ENABLE = no # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +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 + +# 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 +RGB_MATRIX_DRIVER = WS2812 + +# Wear-levelling driver +EEPROM_DRIVER = wear_leveling +WEAR_LEVELING_DRIVER = embedded_flash + +LAYOUTS = tkl_ansi |