diff options
Diffstat (limited to 'platforms/chibios')
-rw-r--r-- | platforms/chibios/BLACKPILL_STM32_F401/ld/STM32F401xC_tinyuf2.ld | 88 | ||||
-rw-r--r-- | platforms/chibios/BLACKPILL_STM32_F401/ld/STM32F401xE_tinyuf2.ld | 88 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F401/board/board.mk (renamed from platforms/chibios/BLACKPILL_STM32_F401/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F401/configs/board.h (renamed from platforms/chibios/BLACKPILL_STM32_F401/configs/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F401/configs/bootloader_defs.h (renamed from platforms/chibios/BLACKPILL_STM32_F401/configs/bootloader_defs.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h (renamed from platforms/chibios/BLACKPILL_STM32_F401/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F401/configs/mcuconf.h (renamed from platforms/chibios/BLACKPILL_STM32_F401/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F411/board/board.mk (renamed from platforms/chibios/BLACKPILL_STM32_F411/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F411/configs/board.h (renamed from platforms/chibios/BLACKPILL_STM32_F411/configs/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F411/configs/bootloader_defs.h (renamed from platforms/chibios/BLACKPILL_STM32_F411/configs/bootloader_defs.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F411/configs/config.h (renamed from platforms/chibios/BLACKPILL_STM32_F411/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F411/configs/mcuconf.h (renamed from platforms/chibios/BLACKPILL_STM32_F411/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F411/ld/STM32F411xC_tinyuf2.ld (renamed from platforms/chibios/BLACKPILL_STM32_F411/ld/STM32F411xC_tinyuf2.ld) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F411/ld/STM32F411xE_tinyuf2.ld (renamed from platforms/chibios/BLACKPILL_STM32_F411/ld/STM32F411xE_tinyuf2.ld) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F042X6/board/board.c (renamed from platforms/chibios/GENERIC_STM32_F042X6/board/board.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F042X6/board/board.h (renamed from platforms/chibios/GENERIC_STM32_F042X6/board/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F042X6/board/board.mk (renamed from platforms/chibios/GENERIC_STM32_F042X6/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F042X6/configs/bootloader_defs.h (renamed from platforms/chibios/GENERIC_STM32_F042X6/configs/bootloader_defs.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F042X6/configs/config.h (renamed from platforms/chibios/GENERIC_STM32_F042X6/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F042X6/configs/mcuconf.h (renamed from platforms/chibios/GENERIC_STM32_F042X6/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F072XB/board/board.mk (renamed from platforms/chibios/GENERIC_STM32_F072XB/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F072XB/configs/board.h (renamed from platforms/chibios/GENERIC_STM32_F072XB/configs/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F072XB/configs/bootloader_defs.h (renamed from platforms/chibios/GENERIC_STM32_F072XB/configs/bootloader_defs.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F072XB/configs/config.h (renamed from platforms/chibios/GENERIC_STM32_F072XB/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h (renamed from platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F303XC/board/board.mk (renamed from platforms/chibios/GENERIC_STM32_F303XC/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F303XC/configs/board.h (renamed from platforms/chibios/GENERIC_STM32_F303XC/configs/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F303XC/configs/bootloader_defs.h (renamed from platforms/chibios/GENERIC_STM32_F303XC/configs/bootloader_defs.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F303XC/configs/config.h (renamed from platforms/chibios/GENERIC_STM32_F303XC/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F303XC/configs/mcuconf.h (renamed from platforms/chibios/GENERIC_STM32_F303XC/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F407XE/board/board.mk | 9 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F407XE/configs/board.h | 24 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F407XE/configs/config.h (renamed from platforms/chibios/GENERIC_STM32_F446XE/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F407XE/configs/mcuconf.h | 355 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F446XE/board/board.mk (renamed from platforms/chibios/GENERIC_STM32_F446XE/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F446XE/configs/board.h (renamed from platforms/chibios/GENERIC_STM32_F446XE/configs/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h | 23 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F446XE/configs/mcuconf.h (renamed from platforms/chibios/GENERIC_STM32_F446XE/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_G431XB/board/board.mk (renamed from platforms/chibios/GENERIC_STM32_G431XB/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_G431XB/configs/config.h (renamed from platforms/chibios/GENERIC_STM32_G431XB/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_G431XB/configs/mcuconf.h (renamed from platforms/chibios/GENERIC_STM32_G431XB/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_G474XE/board/board.mk (renamed from platforms/chibios/GENERIC_STM32_G474XE/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_G474XE/configs/config.h (renamed from platforms/chibios/GENERIC_STM32_G474XE/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_G474XE/configs/mcuconf.h (renamed from platforms/chibios/GENERIC_STM32_G474XE/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_L412XB/board/board.mk (renamed from platforms/chibios/GENERIC_STM32_L433XC/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_L412XB/configs/board.h (renamed from platforms/chibios/GENERIC_STM32_L433XC/configs/board.h) | 2 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_L412XB/configs/config.h (renamed from platforms/chibios/GENERIC_STM32_L433XC/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_L412XB/configs/mcuconf.h | 282 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_L433XC/board/board.mk | 9 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_L433XC/configs/board.h | 24 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_L433XC/configs/config.h | 26 | ||||
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_L433XC/configs/mcuconf.h (renamed from platforms/chibios/GENERIC_STM32_L433XC/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/IC_TEENSY_3_1/board/board.c (renamed from platforms/chibios/IC_TEENSY_3_1/board/board.c) | 5 | ||||
-rw-r--r-- | platforms/chibios/boards/IC_TEENSY_3_1/board/board.h (renamed from platforms/chibios/IC_TEENSY_3_1/board/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/IC_TEENSY_3_1/board/board.mk (renamed from platforms/chibios/IC_TEENSY_3_1/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/IC_TEENSY_4_1/board/board.mk | 1 | ||||
-rw-r--r-- | platforms/chibios/boards/IC_TEENSY_4_1/rules.mk | 1 | ||||
-rw-r--r-- | platforms/chibios/boards/QMK_PROTON_C/board/board.mk (renamed from platforms/chibios/QMK_PROTON_C/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/QMK_PROTON_C/configs/board.h (renamed from platforms/chibios/QMK_PROTON_C/configs/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/QMK_PROTON_C/configs/bootloader_defs.h (renamed from platforms/chibios/QMK_PROTON_C/configs/bootloader_defs.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/QMK_PROTON_C/configs/chconf.h (renamed from platforms/chibios/QMK_PROTON_C/configs/chconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/QMK_PROTON_C/configs/config.h (renamed from platforms/chibios/QMK_PROTON_C/configs/config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/QMK_PROTON_C/configs/halconf.h (renamed from platforms/chibios/QMK_PROTON_C/configs/halconf.h) | 2 | ||||
-rw-r--r-- | platforms/chibios/boards/QMK_PROTON_C/configs/mcuconf.h (renamed from platforms/chibios/QMK_PROTON_C/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/QMK_PROTON_C/convert_to_proton_c.mk (renamed from platforms/chibios/QMK_PROTON_C/convert_to_proton_c.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/STM32_F103_STM32DUINO/board/board.c (renamed from platforms/chibios/STM32_F103_STM32DUINO/board/board.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/STM32_F103_STM32DUINO/board/board.h (renamed from platforms/chibios/STM32_F103_STM32DUINO/board/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/STM32_F103_STM32DUINO/board/board.mk (renamed from platforms/chibios/STM32_F103_STM32DUINO/board/board.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/STM32_F103_STM32DUINO/configs/mcuconf.h (renamed from platforms/chibios/STM32_F103_STM32DUINO/configs/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/STM32_F103_STM32DUINO/ld/STM32F103x8_stm32duino_bootloader.ld | 22 | ||||
-rw-r--r-- | platforms/chibios/boards/STM32_F103_STM32DUINO/ld/STM32F103xB_stm32duino_bootloader.ld | 22 | ||||
-rw-r--r-- | platforms/chibios/boards/STM32_F103_STM32DUINO/ld/stm32duino_bootloader_common.ld (renamed from platforms/chibios/common/ld/STM32F103x8_stm32duino_bootloader.ld) | 4 | ||||
-rw-r--r-- | platforms/chibios/boards/common/configs/chconf.h (renamed from platforms/chibios/common/configs/chconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/common/configs/halconf.h (renamed from platforms/chibios/common/configs/halconf.h) | 2 | ||||
-rw-r--r-- | platforms/chibios/boards/common/ld/MKL26Z64.ld (renamed from platforms/chibios/common/ld/MKL26Z64.ld) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/common/ld/STM32L412xB.ld | 85 | ||||
-rw-r--r-- | platforms/chibios/boards/keyboard-config-templates/board.h (renamed from platforms/chibios/keyboard-config-templates/board.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/keyboard-config-templates/chconf.h (renamed from platforms/chibios/keyboard-config-templates/chconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/keyboard-config-templates/halconf.h (renamed from platforms/chibios/keyboard-config-templates/halconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/boards/keyboard-config-templates/mcuconf.h (renamed from platforms/chibios/keyboard-config-templates/mcuconf.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/drivers/analog.c | 321 | ||||
-rw-r--r-- | platforms/chibios/drivers/analog.h | 41 | ||||
-rw-r--r-- | platforms/chibios/drivers/eeprom/eeprom_stm32_L0_L1.c | 96 | ||||
-rw-r--r-- | platforms/chibios/drivers/eeprom/eeprom_stm32_L0_L1.h | 33 | ||||
-rw-r--r-- | platforms/chibios/drivers/i2c_master.c | 121 | ||||
-rw-r--r-- | platforms/chibios/drivers/i2c_master.h | 113 | ||||
-rw-r--r-- | platforms/chibios/drivers/serial.c | 278 | ||||
-rw-r--r-- | platforms/chibios/drivers/serial_usart.c | 318 | ||||
-rw-r--r-- | platforms/chibios/drivers/serial_usart.h | 116 | ||||
-rw-r--r-- | platforms/chibios/drivers/spi_master.c | 202 | ||||
-rw-r--r-- | platforms/chibios/drivers/spi_master.h | 93 | ||||
-rw-r--r-- | platforms/chibios/drivers/uart.c | 50 | ||||
-rw-r--r-- | platforms/chibios/drivers/uart.h | 77 | ||||
-rw-r--r-- | platforms/chibios/drivers/usbpd_stm32g4.c | 76 | ||||
-rw-r--r-- | platforms/chibios/drivers/ws2812.c | 114 | ||||
-rw-r--r-- | platforms/chibios/drivers/ws2812_pwm.c | 311 | ||||
-rw-r--r-- | platforms/chibios/drivers/ws2812_spi.c | 159 | ||||
-rw-r--r-- | platforms/chibios/flash.mk | 87 |
98 files changed, 3675 insertions, 5 deletions
diff --git a/platforms/chibios/BLACKPILL_STM32_F401/ld/STM32F401xC_tinyuf2.ld b/platforms/chibios/BLACKPILL_STM32_F401/ld/STM32F401xC_tinyuf2.ld new file mode 100644 index 0000000000..f4e487dc8f --- /dev/null +++ b/platforms/chibios/BLACKPILL_STM32_F401/ld/STM32F401xC_tinyuf2.ld @@ -0,0 +1,88 @@ +/* + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +/* + * STM32F401xC memory setup. + */ +MEMORY +{ + flash0 (rx) : org = 0x08000000 + 64k, len = 256k - 64k /* tinyuf2 bootloader requires app to be located at 64k offset for this MCU */ + flash1 (rx) : org = 0x00000000, len = 0 + flash2 (rx) : org = 0x00000000, len = 0 + flash3 (rx) : org = 0x00000000, len = 0 + flash4 (rx) : org = 0x00000000, len = 0 + flash5 (rx) : org = 0x00000000, len = 0 + flash6 (rx) : org = 0x00000000, len = 0 + flash7 (rx) : org = 0x00000000, len = 0 + ram0 (wx) : org = 0x20000000, len = 64k + ram1 (wx) : org = 0x00000000, len = 0 + ram2 (wx) : org = 0x00000000, len = 0 + ram3 (wx) : org = 0x00000000, len = 0 + ram4 (wx) : org = 0x00000000, len = 0 + ram5 (wx) : org = 0x00000000, len = 0 + ram6 (wx) : org = 0x00000000, len = 0 + ram7 (wx) : org = 0x00000000, len = 0 +} + +/* For each data/text section two region are defined, a virtual region + and a load region (_LMA suffix).*/ + +/* Flash region to be used for exception vectors.*/ +REGION_ALIAS("VECTORS_FLASH", flash0); +REGION_ALIAS("VECTORS_FLASH_LMA", flash0); + +/* Flash region to be used for constructors and destructors.*/ +REGION_ALIAS("XTORS_FLASH", flash0); +REGION_ALIAS("XTORS_FLASH_LMA", flash0); + +/* Flash region to be used for code text.*/ +REGION_ALIAS("TEXT_FLASH", flash0); +REGION_ALIAS("TEXT_FLASH_LMA", flash0); + +/* Flash region to be used for read only data.*/ +REGION_ALIAS("RODATA_FLASH", flash0); +REGION_ALIAS("RODATA_FLASH_LMA", flash0); + +/* Flash region to be used for various.*/ +REGION_ALIAS("VARIOUS_FLASH", flash0); +REGION_ALIAS("VARIOUS_FLASH_LMA", flash0); + +/* Flash region to be used for RAM(n) initialization dat |