stm32f4: Add Kconfig build rules for STM32F405/7
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -14,9 +14,40 @@ config BOARD_DIRECTORY
|
||||
string
|
||||
default "stm32f4"
|
||||
|
||||
choice
|
||||
prompt "Processor model"
|
||||
config MACH_STM32F405
|
||||
bool "STM32F405"
|
||||
config MACH_STM32F407
|
||||
bool "STM32F407"
|
||||
config MACH_STM32F446
|
||||
bool "STM32F446"
|
||||
endchoice
|
||||
|
||||
config MCU
|
||||
string
|
||||
default "stm32f405" if MACH_STM32F405
|
||||
default "stm32f407" if MACH_STM32F407
|
||||
default "stm32f446" if MACH_STM32F446
|
||||
|
||||
config CLOCK_FREQ
|
||||
int
|
||||
default 180000000
|
||||
default 168000000 if MACH_STM32F405 || MACH_STM32F407
|
||||
default 180000000 if MACH_STM32F446
|
||||
|
||||
config FLASH_SIZE
|
||||
hex
|
||||
default 0x80000 if MACH_STM32F405 || MACH_STM32F407
|
||||
default 0x80000 if MACH_STM32F446
|
||||
|
||||
config RAM_SIZE
|
||||
hex
|
||||
default 0x30000 if MACH_STM32F405 || MACH_STM32F407
|
||||
default 0x20000 if MACH_STM32F446
|
||||
|
||||
config STACK_SIZE
|
||||
int
|
||||
default 512
|
||||
|
||||
choice
|
||||
prompt "Clock Reference"
|
||||
|
||||
Reference in New Issue
Block a user