stm32: Support for STM32F401 (#3853)
This module adds support for the STM32F401 microcontrollers Signed-off-by: Marco D'Alessio <marco@wrecklab.com>
This commit is contained in:
@@ -25,6 +25,9 @@ choice
|
||||
config MACH_STM32F207
|
||||
bool "STM32F207"
|
||||
select MACH_STM32F2
|
||||
config MACH_STM32F401
|
||||
bool "STM32F401"
|
||||
select MACH_STM32F4
|
||||
config MACH_STM32F405
|
||||
bool "STM32F405"
|
||||
select MACH_STM32F4
|
||||
@@ -65,6 +68,7 @@ config MCU
|
||||
default "stm32f070xb" if MACH_STM32F070
|
||||
default "stm32f103xe" if MACH_STM32F103
|
||||
default "stm32f207xx" if MACH_STM32F207
|
||||
default "stm32f401xc" if MACH_STM32F401
|
||||
default "stm32f405xx" if MACH_STM32F405
|
||||
default "stm32f407xx" if MACH_STM32F407
|
||||
default "stm32f446xx" if MACH_STM32F446
|
||||
@@ -75,6 +79,7 @@ config CLOCK_FREQ
|
||||
default 64000000 if MACH_STM32F103 && STM32_CLOCK_REF_INTERNAL
|
||||
default 72000000 if MACH_STM32F103
|
||||
default 120000000 if MACH_STM32F207
|
||||
default 84000000 if MACH_STM32F401
|
||||
default 168000000 if MACH_STM32F405 || MACH_STM32F407
|
||||
default 180000000 if MACH_STM32F446
|
||||
|
||||
@@ -83,8 +88,8 @@ config FLASH_SIZE
|
||||
default 0x8000 if MACH_STM32F042
|
||||
default 0x20000 if MACH_STM32F070
|
||||
default 0x10000 if MACH_STM32F103 # Flash size of stm32f103x8 (64KiB)
|
||||
default 0x40000 if MACH_STM32F2
|
||||
default 0x80000 if MACH_STM32F4
|
||||
default 0x40000 if MACH_STM32F2 || MACH_STM32F401
|
||||
default 0x80000 if MACH_STM32F405 || MACH_STM32F407 || MACH_STM32F446
|
||||
|
||||
config RAM_START
|
||||
hex
|
||||
@@ -96,7 +101,9 @@ config RAM_SIZE
|
||||
default 0x4000 if MACH_STM32F070
|
||||
default 0x5000 if MACH_STM32F103 # Ram size of stm32f103x8 (20KiB)
|
||||
default 0x20000 if MACH_STM32F207
|
||||
default 0x20000 if MACH_STM32F4
|
||||
default 0x10000 if MACH_STM32F401
|
||||
default 0x20000 if MACH_STM32F405 || MACH_STM32F407 || MACH_STM32F446
|
||||
|
||||
|
||||
config STACK_SIZE
|
||||
int
|
||||
@@ -184,7 +191,7 @@ choice
|
||||
config CAN_PINS_PB5_PB6
|
||||
bool "Pins PB5(rx) and PB6(tx)" if MACH_STM32F4
|
||||
config CAN_PINS_PB12_PB13
|
||||
bool "Pins PB12(rx) and PB13(tx)" if MACH_STM32F4
|
||||
bool "Pins PB12(rx) and PB13(tx)" if MACH_STM32F405 || MACH_STM32F407
|
||||
endchoice
|
||||
|
||||
config STM32F0_TRIM
|
||||
@@ -221,7 +228,7 @@ choice
|
||||
config STM32_SERIAL_USART3
|
||||
bool "USART3"
|
||||
config STM32_SERIAL_USART3_ALT
|
||||
bool "USART3 (on PD9/PD8)" if MACH_STM32F4
|
||||
bool "USART3 (on PD9/PD8)" if MACH_STM32F405 || MACH_STM32F407
|
||||
endchoice
|
||||
config SERIAL_PORT
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user