diff options
| author | Ryan <fauxpark@gmail.com> | 2020-03-19 12:33:17 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-19 01:33:17 +0000 |
| commit | 3a0f11eb277ab719b312547981a0b0db958fbc87 (patch) | |
| tree | 50e954dfc5f4eb66141bce2e6d3c4f1ac9a78170 | |
| parent | c2013f0b7c0289f582fd41f1276f174f7d9e3c17 (diff) | |
| download | qmk_firmware-3a0f11eb277ab719b312547981a0b0db958fbc87.tar.gz qmk_firmware-3a0f11eb277ab719b312547981a0b0db958fbc87.zip | |
Set MCU for some F103 boards (#8459)
| -rw-r--r-- | keyboards/ergodox_stm32/rules.mk | 25 | ||||
| -rw-r--r-- | keyboards/handwired/bluepill/bluepill70/rules.mk | 54 | ||||
| -rw-r--r-- | keyboards/jm60/rules.mk | 45 |
3 files changed, 19 insertions, 105 deletions
diff --git a/keyboards/ergodox_stm32/rules.mk b/keyboards/ergodox_stm32/rules.mk index ab7b853f5..cd1f2d97c 100644 --- a/keyboards/ergodox_stm32/rules.mk +++ b/keyboards/ergodox_stm32/rules.mk | |||
| @@ -1,24 +1,11 @@ | |||
| 1 | SRC += matrix.c | 1 | # MCU name |
| 2 | QUANTUM_LIB_SRC += i2c_master.c | 2 | MCU = STM32F103 |
| 3 | |||
| 4 | CFLAGS += "-Wno-error=deprecated" | ||
| 5 | |||
| 6 | MCU_FAMILY = STM32 | ||
| 7 | MCU_SERIES = STM32F1xx | ||
| 8 | 3 | ||
| 9 | MCU_LDSCRIPT = stm32f103_bootloader | 4 | MCU_LDSCRIPT = stm32f103_bootloader |
| 10 | |||
| 11 | MCU_STARTUP = stm32f1xx | ||
| 12 | |||
| 13 | BOARD = ERGODOX_STM32_BOARD | 5 | BOARD = ERGODOX_STM32_BOARD |
| 14 | 6 | ||
| 15 | MCU = cortex-m3 | 7 | CFLAGS += "-Wno-error=deprecated" |
| 16 | 8 | EXTRAFLAGS = -O0 -g | |
| 17 | ARMV = 7 | ||
| 18 | |||
| 19 | OPT_DEFS = | ||
| 20 | |||
| 21 | EXTRAFLAGS=-O0 -g | ||
| 22 | 9 | ||
| 23 | BOOTMAGIC_ENABLE = no | 10 | BOOTMAGIC_ENABLE = no |
| 24 | MOUSEKEY_ENABLE = no # Mouse keys | 11 | MOUSEKEY_ENABLE = no # Mouse keys |
| @@ -31,6 +18,8 @@ CUSTOM_MATRIX = yes # Custom matrix file | |||
| 31 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 18 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 32 | UNICODE_ENABLE = yes # Unicode | 19 | UNICODE_ENABLE = yes # Unicode |
| 33 | 20 | ||
| 34 | |||
| 35 | # Enter lower-power sleep mode when on the ChibiOS idle thread | 21 | # Enter lower-power sleep mode when on the ChibiOS idle thread |
| 36 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | 22 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE |
| 23 | |||
| 24 | SRC += matrix.c | ||
| 25 | QUANTUM_LIB_SRC += i2c_master.c | ||
diff --git a/keyboards/handwired/bluepill/bluepill70/rules.mk b/keyboards/handwired/bluepill/bluepill70/rules.mk index 5cf5f3f6c..4a757bcc9 100644 --- a/keyboards/handwired/bluepill/bluepill70/rules.mk +++ b/keyboards/handwired/bluepill/bluepill70/rules.mk | |||
| @@ -1,51 +1,9 @@ | |||
| 1 | # project specific files | 1 | # MCU name |
| 2 | SRC = matrix.c \ | 2 | MCU = STM32F103 |
| 3 | led.c | ||
| 4 | |||
| 5 | # GENERIC STM32F103C8T6 board - stm32duino bootloader | ||
| 6 | #OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000 | ||
| 7 | #MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader | ||
| 8 | #BOARD = GENERIC_STM32_F103 | ||
| 9 | |||
| 10 | # GENERIC STM32F103C8T6 board - no bootloader (programmer over serial or SWD) // Modified by Xydane | ||
| 11 | OPT_DEFS = | ||
| 12 | MCU_LDSCRIPT = STM32F103x8 | ||
| 13 | BOARD = GENERIC_STM32_F103 | ||
| 14 | |||
| 15 | # MAPLE MINI | ||
| 16 | # OPT_DEFS = -DCORTEX_VTOR_INIT=0x5000 | ||
| 17 | # MCU_LDSCRIPT = STM32F103xB_maplemini_bootloader | ||
| 18 | # BOARD = MAPLEMINI_STM32_F103 | ||
| 19 | |||
| 20 | ## chip/board settings | ||
| 21 | # the next two should match the directories in | ||
| 22 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 23 | MCU_FAMILY = STM32 | ||
| 24 | MCU_SERIES = STM32F1xx | ||
| 25 | # linker script to use | ||
| 26 | # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
| 27 | # or <this_dir>/ld/ | ||
| 28 | # startup code to use | ||
| 29 | # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
| 30 | MCU_STARTUP = stm32f1xx | ||
| 31 | # it should exist either in <chibios>/os/hal/boards/ | ||
| 32 | # or <this_dir>/boards | ||
| 33 | # Cortex version | ||
| 34 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
| 35 | MCU = cortex-m3 | ||
| 36 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 37 | ARMV = 7 | ||
| 38 | # If you want to be able to jump to bootloader from firmware on STM32 MCUs, | ||
| 39 | # set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in | ||
| 40 | # ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have | ||
| 41 | # a custom board definition that you plan to reuse). | ||
| 42 | # If you're not setting it here, leave it commented out. | ||
| 43 | # It is chip dependent, the correct number can be looked up here (page 175): | ||
| 44 | # http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf | ||
| 45 | # This also requires a patch to chibios: | ||
| 46 | # <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch | ||
| 47 | #STM32_BOOTLOADER_ADDRESS = 0x1FFFC800 | ||
| 48 | |||
| 49 | 3 | ||
| 50 | # Enter lower-power sleep mode when on the ChibiOS idle thread | 4 | # Enter lower-power sleep mode when on the ChibiOS idle thread |
| 51 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | 5 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE |
| 6 | |||
| 7 | # project specific files | ||
| 8 | SRC = matrix.c \ | ||
| 9 | led.c | ||
diff --git a/keyboards/jm60/rules.mk b/keyboards/jm60/rules.mk index ed6431b65..a513461fc 100644 --- a/keyboards/jm60/rules.mk +++ b/keyboards/jm60/rules.mk | |||
| @@ -1,41 +1,9 @@ | |||
| 1 | # project specific files | 1 | # MCU name |
| 2 | SRC = matrix.c \ | 2 | MCU = STM32F103 |
| 3 | led.c | ||
| 4 | |||
| 5 | ## chip/board settings | ||
| 6 | # - the next two should match the directories in | ||
| 7 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 8 | MCU_FAMILY = STM32 | ||
| 9 | MCU_SERIES = STM32F1xx | ||
| 10 | 3 | ||
| 11 | # Linker script to use | ||
| 12 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
| 13 | # or <this_dir>/ld/ | ||
| 14 | # - NOTE: a custom ld script is needed for EEPROM on Teensy LC | ||
| 15 | MCU_LDSCRIPT = jm60_bootloader | 4 | MCU_LDSCRIPT = jm60_bootloader |
| 16 | |||
| 17 | # Startup code to use | ||
| 18 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
| 19 | MCU_STARTUP = stm32f1xx | ||
| 20 | |||
| 21 | # Board: it should exist either in <chibios>/os/hal/boards/ | ||
| 22 | # or <this_dir>/boards | ||
| 23 | BOARD = JM60_BOARD | 5 | BOARD = JM60_BOARD |
| 24 | 6 | ||
| 25 | # Cortex version | ||
| 26 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
| 27 | MCU = cortex-m3 | ||
| 28 | |||
| 29 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 30 | # I.e. 6 for Teensy LC; 7 for Teensy 3.x | ||
| 31 | ARMV = 7 | ||
| 32 | |||
| 33 | # Vector table for application | ||
| 34 | # 0x00000000-0x00001000 area is occupied by bootlaoder.*/ | ||
| 35 | # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB | ||
| 36 | #OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000 | ||
| 37 | OPT_DEFS = | ||
| 38 | |||
| 39 | # Build Options | 7 | # Build Options |
| 40 | # comment out to disable the options. | 8 | # comment out to disable the options. |
| 41 | # | 9 | # |
| @@ -51,10 +19,9 @@ CUSTOM_MATRIX = yes # Custom matrix file | |||
| 51 | BACKLIGHT_ENABLE = no | 19 | BACKLIGHT_ENABLE = no |
| 52 | VISUALIZER_ENABLE = no | 20 | VISUALIZER_ENABLE = no |
| 53 | 21 | ||
| 54 | #LED_DRIVER = is31fl3731c | ||
| 55 | #LED_WIDTH = 16 | ||
| 56 | #LED_HEIGHT = 5 | ||
| 57 | |||
| 58 | |||
| 59 | # Enter lower-power sleep mode when on the ChibiOS idle thread | 22 | # Enter lower-power sleep mode when on the ChibiOS idle thread |
| 60 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | 23 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE |
| 24 | |||
| 25 | # project specific files | ||
| 26 | SRC = matrix.c \ | ||
| 27 | led.c | ||
