rules.mk 882 B

12345678910111213141516171819202122232425262728
  1. # MCU name
  2. MCU = STM32F103
  3. # GENERIC STM32F103C8T6 board - stm32duino bootloader
  4. OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
  5. MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
  6. BOARD = STM32_F103_STM32DUINO
  7. DFU_ARGS = -d 1eaf:0003 -a2 -R
  8. DFU_SUFFIX_ARGS = -v 1eaf -p 0003
  9. # project specific files
  10. VPATH += keyboards/cannonkeys/bluepill
  11. SRC = keyboard.c
  12. #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
  13. MOUSEKEY_ENABLE = yes # Mouse keys
  14. EXTRAKEY_ENABLE = yes # Audio control and System control
  15. CONSOLE_ENABLE = yes # Console for debug
  16. COMMAND_ENABLE = yes # Commands for debug and configuration
  17. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  18. NKRO_ENABLE = yes # USB Nkey Rollover
  19. BACKLIGHT_ENABLE = yes
  20. RGBLIGHT_ENABLE = yes
  21. WS2812_DRIVER = spi
  22. # Enter lower-power sleep mode when on the ChibiOS idle thread
  23. OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE