summaryrefslogtreecommitdiff
path: root/keyboards/kbdfans/odin/rgb/rules.mk
diff options
context:
space:
mode:
authormoyi4681 <moyi4681@users.noreply.github.com>2021-11-29 16:28:00 +0800
committerGitHub <noreply@github.com>2021-11-29 00:28:00 -0800
commit9cc97302abcc41106bb1a6fc6eb626c1736b8ce7 (patch)
treeb879acf52a9dd30ee645cd65f5ea72628bcbb782 /keyboards/kbdfans/odin/rgb/rules.mk
parent4c0ecd4910af46f9e7b5ca01ea2e016d69092faa (diff)
downloadqmk_firmware-9cc97302abcc41106bb1a6fc6eb626c1736b8ce7.tar.gz
qmk_firmware-9cc97302abcc41106bb1a6fc6eb626c1736b8ce7.zip
[Keyboard] add odin keyboard (#15150)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/kbdfans/odin/rgb/rules.mk')
-rw-r--r--keyboards/kbdfans/odin/rgb/rules.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboards/kbdfans/odin/rgb/rules.mk b/keyboards/kbdfans/odin/rgb/rules.mk
new file mode 100644
index 0000000000..ec4ea4917c
--- /dev/null
+++ b/keyboards/kbdfans/odin/rgb/rules.mk
@@ -0,0 +1,26 @@
+# MCU name
+MCU = STM32F072
+
+# Bootloader selection
+BOOTLOADER = stm32-dfu
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = yes # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # Commands for debug and configuration
+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+NKRO_ENABLE = yes # USB Nkey Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+AUDIO_ENABLE = no # Audio output
+RGB_MATRIX_ENABLE = yes
+RGB_MATRIX_DRIVER = WS2812
+
+# Enter lower-power sleep mode when on the ChibiOS idle thread
+OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE