rules.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # MCU name
  2. MCU = STM32F303
  3. # Touch encoder needs
  4. SRC += ../common/touch_encoder.c
  5. SRC += ../common/common_oled.c
  6. QUANTUM_LIB_SRC += i2c_master.c
  7. # Build Options
  8. # change to "no" to disable the options, or define them in the Makefile in
  9. # the appropriate keymap folder that will get included automatically
  10. #
  11. BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
  12. ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
  13. MOUSEKEY_ENABLE = no # Mouse keys
  14. EXTRAKEY_ENABLE = yes # Audio control and System control
  15. CONSOLE_ENABLE = yes # Console for debug
  16. COMMAND_ENABLE = no # Commands for debug and configuration
  17. NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  18. AUDIO_ENABLE = no # Audio output
  19. UNICODE_ENABLE = no # Unicode
  20. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  21. WS2812_DRIVER = pwm
  22. RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
  23. RGB_MATRIX_ENABLE = yes
  24. RGB_MATRIX_DRIVER = WS2812
  25. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  26. OLED_ENABLE = yes
  27. OLED_DRIVER = SSD1306 # Enable the OLED Driver
  28. ENCODER_ENABLE = yes
  29. SPLIT_KEYBOARD = yes
  30. SERIAL_DRIVER = usart
  31. LTO_ENABLE = yes
  32. OPT = 3
  33. OPT_DEFS += -DOLED_FONT_H=\"../common/glcdfont.c\"
  34. OPT_DEFS += -Ikeyboards/rgbkb/common
  35. # matrix optimisations
  36. SRC += matrix.c
  37. DEFAULT_FOLDER = rgbkb/mun/rev1