summaryrefslogtreecommitdiff
path: root/layouts/community/split_3x6_3/drashna/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/community/split_3x6_3/drashna/rules.mk')
-rw-r--r--layouts/community/split_3x6_3/drashna/rules.mk28
1 files changed, 23 insertions, 5 deletions
diff --git a/layouts/community/split_3x6_3/drashna/rules.mk b/layouts/community/split_3x6_3/drashna/rules.mk
index 9164dcdeba..83eb699812 100644
--- a/layouts/community/split_3x6_3/drashna/rules.mk
+++ b/layouts/community/split_3x6_3/drashna/rules.mk
@@ -14,13 +14,21 @@ UNICODE_ENABLE = no # Unicode
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
SWAP_HANDS_ENABLE = no # Enable one-hand typing
-ifeq ($(strip $(KEYBOARD)), crkbd/rev1)
- OLED_ENABLE = yes
- RGB_MATRIX_ENABLE = yes
- HAPTIC_ENABLE = no
+USE_ARM_CONFIG ?= no
+ifeq ($(strip $(CONVERT_TO)), proton_c)
+ USE_ARM_CONFIG = yes
endif
-
ifeq ($(strip $(CTPC)), yes)
+ USE_ARM_CONFIG = yes
+endif
+ifeq ($(strip $(MCU)), STM32F303)
+ USE_ARM_CONFIG = yes
+endif
+ifeq ($(strip $(MCU)), STM32F401)
+ USE_ARM_CONFIG = yes
+endif
+
+ifeq ($(strip $(USE_ARM_CONFIG)), yes)
HAPTIC_ENABLE = no
WS2812_DRIVER = pwm # won't work without a patch to the ctpc mk file
SERIAL_DRIVER = usart
@@ -33,3 +41,13 @@ else
BOOTLOADER = qmk-hid
BOOTLOADER_SIZE = 512
endif
+
+ifeq ($(strip $(KEYBOARD)), crkbd/rev1)
+ OLED_ENABLE = yes
+ RGB_MATRIX_ENABLE = yes
+ HAPTIC_ENABLE = no
+endif
+
+ifeq ($(strip $(KEYBOARD)), cantor)
+ SWAP_HANDS_ENABLE = no
+endif