stm32f4: Adapt CONFIG_SOC to STM32Cube values
STM32Cube uses SoC defines made to reflect HW heterogeneity that should be taken into account by SW. Aim of this commit is to adapt values used by Zephyr to the same diversity. This will help create new SoC values only when justified by a real hardware difference that should be taken into account by software. For instance, for SoC stm32f401re following define is used: *STM32F401xE Which means: *Same SW could be used on STM32F401RE and STM32F401CE: same CONFIG_SOC could be used *Different SW should be used on STMF401RE and STM32F401RC: different CONFIG_SOC should be used This change focuses on stm32f4xx series. Change-Id: I56ff4d1815d09747cf722385532eb2dcbdf37b44 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
df5a2af34b
commit
39f7adc41d
6 changed files with 9 additions and 9 deletions
|
@ -15,11 +15,11 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
if SOC_STM32F401RE
|
||||
if SOC_STM32F401XE
|
||||
|
||||
config SOC
|
||||
string
|
||||
default stm32f401re
|
||||
default stm32f401xe
|
||||
|
||||
config SRAM_SIZE
|
||||
default 96
|
||||
|
@ -31,4 +31,4 @@ config NUM_IRQS
|
|||
int
|
||||
default 85
|
||||
|
||||
endif # SOC_STM32F401RE
|
||||
endif # SOC_STM32F401XE
|
|
@ -19,7 +19,7 @@ choice
|
|||
prompt "STM32F4x MCU Selection"
|
||||
depends on SOC_SERIES_STM32F4X
|
||||
|
||||
config SOC_STM32F401RE
|
||||
bool "STM32F401RE"
|
||||
config SOC_STM32F401XE
|
||||
bool "STM32F401XE"
|
||||
|
||||
endchoice
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG_ARM=y
|
||||
CONFIG_BOARD_96B_CARBON=y
|
||||
CONFIG_SOC_SERIES_STM32F4X=y
|
||||
CONFIG_SOC_STM32F401RE=y
|
||||
CONFIG_SOC_STM32F401XE=y
|
||||
# 84MHz system clock
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
|
||||
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
|
||||
config BOARD_96B_CARBON
|
||||
bool "96Boards Carbon (STM32F401)"
|
||||
depends on SOC_STM32F401RE
|
||||
depends on SOC_STM32F401XE
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
|
||||
config BOARD_NUCLEO_F401RE
|
||||
bool "NUCLEO-64 F401RE Development Board"
|
||||
depends on SOC_STM32F401RE
|
||||
depends on SOC_STM32F401XE
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG_ARM=y
|
||||
CONFIG_BOARD_NUCLEO_F401RE=y
|
||||
CONFIG_SOC_SERIES_STM32F4X=y
|
||||
CONFIG_SOC_STM32F401RE=y
|
||||
CONFIG_SOC_STM32F401XE=y
|
||||
# 84MHz system clock
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
|
||||
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue