rules.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # MCU
  2. MCU = cortex-m0plus
  3. ARMV = 6
  4. USE_FPU = no
  5. MCU_FAMILY = HT32
  6. MCU_SERIES = HT32F523xx
  7. MCU_LDSCRIPT = HT32F52342_ANNEPRO2
  8. MCU_STARTUP = ht32f523xx
  9. BOARD = ANNEPRO2_C18
  10. # Bootloader selection
  11. BOOTLOADER = custom
  12. PROGRAM_CMD = annepro2_tools --boot $(BUILD_DIR)/$(TARGET).bin
  13. # Build Options
  14. # change yes to no to disable
  15. #
  16. BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
  17. MOUSEKEY_ENABLE = no # Mouse keys
  18. EXTRAKEY_ENABLE = yes # Audio control and System control
  19. CONSOLE_ENABLE = no # Console for debug
  20. COMMAND_ENABLE = no # Commands for debug and configuration
  21. NKRO_ENABLE = no # Enable N-Key Rollover
  22. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
  23. RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
  24. AUDIO_ENABLE = no # Audio output
  25. # Wear-levelling driver
  26. EEPROM_DRIVER = wear_leveling
  27. WEAR_LEVELING_DRIVER = spi_flash
  28. # Custom RGB matrix handling
  29. RGB_MATRIX_ENABLE = yes
  30. RGB_MATRIX_DRIVER = custom
  31. # Keys
  32. CUSTOM_MATRIX = lite
  33. KEY_LOCK_ENABLE = no
  34. # Other features
  35. RAW_ENABLE = no
  36. MIDI_ENABLE = no
  37. VIRTSER_ENABLE = no
  38. COMBO_ENABLE = no
  39. # Anne Pro 2
  40. SRC = \
  41. matrix.c \
  42. annepro2_ble.c \
  43. ap2_led.c \
  44. protocol.c \
  45. rgb_driver.c \
  46. config_led.c