rules.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # MCU name
  2. MCU = STM32F103
  3. # Bootloader selection
  4. # Cannot use `BOOTLOADER = stm32duino` due to the need to override
  5. # `MCU_LDSCRIPT`, therefore all parameters need to be specified here manually.
  6. OPT_DEFS += -DBOOTLOADER_STM32DUINO
  7. MCU_LDSCRIPT = STM32F103xB_stm32duino_bootloader
  8. BOARD = STM32_F103_STM32DUINO
  9. BOOTLOADER_TYPE = stm32duino
  10. DFU_ARGS = -d 1EAF:0003 -a 2 -R
  11. DFU_SUFFIX_ARGS = -v 1EAF -p 0003
  12. # Build Options
  13. # change yes to no to disable
  14. #
  15. BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
  16. MOUSEKEY_ENABLE = no # Mouse keys
  17. EXTRAKEY_ENABLE = yes # Audio control and System control
  18. CONSOLE_ENABLE = no # Console for debug
  19. COMMAND_ENABLE = no # Commands for debug and configuration
  20. NKRO_ENABLE = yes # Enable N-Key Rollover
  21. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
  22. RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
  23. AUDIO_ENABLE = no # Audio output
  24. # Enter lower-power sleep mode when on the ChibiOS idle thread
  25. OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
  26. # RGB Matrix enabled
  27. RGB_MATRIX_ENABLE = yes
  28. RGB_MATRIX_DRIVER = WS2812
  29. # Wear-levelling driver
  30. EEPROM_DRIVER = wear_leveling
  31. WEAR_LEVELING_DRIVER = embedded_flash