stm32f1: 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 stm32f103rb following define is used: *STM32F103xB Which means: *Same SW could be used on STM32F103RB and STM32F103VB: same CONFIG_SOC could be used *Different SW should be used on STMF103RB and STM32F103R4: different CONFIG_SOC should be used This change focuses on stm32f1xx series. Change-Id: I5ecfaa52952d04421b27b5e74fb71b4fc108b662 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
d0b1674048
commit
df5a2af34b
9 changed files with 16 additions and 16 deletions
|
@ -15,11 +15,11 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
if SOC_STM32F103RB
|
||||
if SOC_STM32F103XB
|
||||
|
||||
config SOC
|
||||
string
|
||||
default stm32f103rb
|
||||
default stm32f103xb
|
||||
config SRAM_SIZE
|
||||
default 20
|
||||
|
||||
|
@ -30,5 +30,5 @@ config NUM_IRQS
|
|||
int
|
||||
default 59
|
||||
|
||||
endif # SOC_STM32F103RB
|
||||
endif # SOC_STM32F103XB
|
||||
|
|
@ -15,11 +15,11 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
if SOC_STM32F103VE
|
||||
if SOC_STM32F103XE
|
||||
|
||||
config SOC
|
||||
string
|
||||
default stm32f103ve
|
||||
default stm32f103xe
|
||||
|
||||
config SRAM_SIZE
|
||||
default 64
|
||||
|
@ -31,5 +31,5 @@ config NUM_IRQS
|
|||
int
|
||||
default 68
|
||||
|
||||
endif # SOC_STM32F103VE
|
||||
endif # SOC_STM32F103XE
|
||||
|
|
@ -19,10 +19,10 @@ choice
|
|||
prompt "STM32F1x MCU Selection"
|
||||
depends on SOC_SERIES_STM32F1X
|
||||
|
||||
config SOC_STM32F103VE
|
||||
bool "STM32F103VE"
|
||||
config SOC_STM32F103XE
|
||||
bool "STM32F103XE"
|
||||
|
||||
config SOC_STM32F103RB
|
||||
bool "STM32F103RB"
|
||||
config SOC_STM32F103XB
|
||||
bool "STM32F103XB"
|
||||
|
||||
endchoice
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
|
||||
config BOARD_NUCLEO_F103RB
|
||||
bool "NUCLEO-64 F103RB Development Board"
|
||||
depends on SOC_STM32F103RB
|
||||
depends on SOC_STM32F103XB
|
||||
|
|
|
@ -2,7 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_BOARD_NUCLEO_F103RB=y
|
||||
CONFIG_SOC_FAMILY_STM32=y
|
||||
CONFIG_SOC_SERIES_STM32F1X=y
|
||||
CONFIG_SOC_STM32F103RB=y
|
||||
CONFIG_SOC_STM32F103XB=y
|
||||
CONFIG_CORTEX_M_SYSTICK=y
|
||||
# 72MHz system clock
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
|
||||
|
|
|
@ -16,4 +16,4 @@
|
|||
#
|
||||
config BOARD_OLIMEXINO_STM32
|
||||
bool "OLIMEXINO-STM32 Development Board"
|
||||
depends on SOC_STM32F103RB
|
||||
depends on SOC_STM32F103XB
|
||||
|
|
|
@ -2,7 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_BOARD_OLIMEXINO_STM32=y
|
||||
CONFIG_SOC_FAMILY_STM32=y
|
||||
CONFIG_SOC_SERIES_STM32F1X=y
|
||||
CONFIG_SOC_STM32F103RB=y
|
||||
CONFIG_SOC_STM32F103XB=y
|
||||
CONFIG_CORTEX_M_SYSTICK=y
|
||||
# 72MHz system clock
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
|
||||
config BOARD_STM32_MINI_A15
|
||||
bool "STM32 MINI A15 Development Board"
|
||||
depends on SOC_STM32F103VE
|
||||
depends on SOC_STM32F103XE
|
||||
|
|
|
@ -2,7 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_BOARD_STM32_MINI_A15=y
|
||||
CONFIG_SOC_FAMILY_STM32=y
|
||||
CONFIG_SOC_SERIES_STM32F1X=y
|
||||
CONFIG_SOC_STM32F103VE=y
|
||||
CONFIG_SOC_STM32F103XE=y
|
||||
CONFIG_CORTEX_M_SYSTICK=y
|
||||
# 72MHz system clock
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue