summaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox_stm32
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-03-19 12:33:17 +1100
committerGitHub <noreply@github.com>2020-03-19 01:33:17 +0000
commit3a0f11eb277ab719b312547981a0b0db958fbc87 (patch)
tree50e954dfc5f4eb66141bce2e6d3c4f1ac9a78170 /keyboards/ergodox_stm32
parentc2013f0b7c0289f582fd41f1276f174f7d9e3c17 (diff)
Set MCU for some F103 boards (#8459)
Diffstat (limited to 'keyboards/ergodox_stm32')
-rw-r--r--keyboards/ergodox_stm32/rules.mk25
1 files changed, 7 insertions, 18 deletions
diff --git a/keyboards/ergodox_stm32/rules.mk b/keyboards/ergodox_stm32/rules.mk
index ab7b853f5d..cd1f2d97c4 100644
--- a/keyboards/ergodox_stm32/rules.mk
+++ b/keyboards/ergodox_stm32/rules.mk
@@ -1,24 +1,11 @@
-SRC += matrix.c
-QUANTUM_LIB_SRC += i2c_master.c
-
-CFLAGS += "-Wno-error=deprecated"
-
-MCU_FAMILY = STM32
-MCU_SERIES = STM32F1xx
+# MCU name
+MCU = STM32F103
MCU_LDSCRIPT = stm32f103_bootloader
-
-MCU_STARTUP = stm32f1xx
-
BOARD = ERGODOX_STM32_BOARD
-MCU = cortex-m3
-
-ARMV = 7
-
-OPT_DEFS =
-
-EXTRAFLAGS=-O0 -g
+CFLAGS += "-Wno-error=deprecated"
+EXTRAFLAGS = -O0 -g
BOOTMAGIC_ENABLE = no
MOUSEKEY_ENABLE = no # Mouse keys
@@ -31,6 +18,8 @@ CUSTOM_MATRIX = yes # Custom matrix file
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
UNICODE_ENABLE = yes # Unicode
-
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
+
+SRC += matrix.c
+QUANTUM_LIB_SRC += i2c_master.c