Browse Source
Port STM32L1 series to HW model V2 Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>pull/69687/head
14 changed files with 54 additions and 73 deletions
@ -1,14 +0,0 @@
@@ -1,14 +0,0 @@
|
||||
# ST Microelectronics STM32L151X8-A MCU |
||||
|
||||
# Copyright (c) 2019 eTactica ehf |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if SOC_STM32L151X8A |
||||
|
||||
config SOC |
||||
default "stm32l151x8a" |
||||
|
||||
config NUM_IRQS |
||||
default 45 |
||||
|
||||
endif # SOC_STM32L151X8A |
@ -1,28 +0,0 @@
@@ -1,28 +0,0 @@
|
||||
# ST Microelectronics STM32L1 MCU line |
||||
|
||||
# Copyright (c) 2019 Linaro Ltd. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
choice |
||||
prompt "STM32L1x MCU Selection" |
||||
depends on SOC_SERIES_STM32L1X |
||||
|
||||
config SOC_STM32L151X8A |
||||
bool "STM32L151X8A" |
||||
|
||||
config SOC_STM32L151XB |
||||
bool "STM32L151XB" |
||||
|
||||
config SOC_STM32L151XBA |
||||
bool "STM32L151XBA" |
||||
|
||||
config SOC_STM32L151XC |
||||
bool "STM32L151XC" |
||||
|
||||
config SOC_STM32L152XC |
||||
bool "STM32L152XC" |
||||
|
||||
config SOC_STM32L152XE |
||||
bool "STM32L152XE" |
||||
|
||||
endchoice |
@ -1,16 +1,12 @@
@@ -1,16 +1,12 @@
|
||||
# ST Microelectronics STM32L1 MCU series |
||||
# STMicroelectronics STM32L1 MCU series |
||||
|
||||
# Copyright (c) 2019 Linaro Ltd. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config SOC_SERIES_STM32L1X |
||||
bool "STM32L1x Series MCU" |
||||
select ARM |
||||
select CPU_CORTEX_M3 |
||||
select CPU_CORTEX_M_HAS_DWT |
||||
select SOC_FAMILY_STM32 |
||||
select HAS_STM32CUBE |
||||
select HAS_SWO |
||||
select CPU_HAS_ARM_MPU |
||||
help |
||||
Enable support for STM32L1 MCU series |
@ -1,14 +1,11 @@
@@ -1,14 +1,11 @@
|
||||
# ST Microelectronics STM32L1 MCU line |
||||
# STMicroelectronics STM32L1 MCU line |
||||
|
||||
# Copyright (c) 2019 Linaro Ltd. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if SOC_SERIES_STM32L1X |
||||
|
||||
source "soc/soc_legacy/arm/st_stm32/stm32l1/Kconfig.defconfig.stm32l1*" |
||||
|
||||
config SOC_SERIES |
||||
default "stm32l1" |
||||
rsource "Kconfig.defconfig.stm32l1*" |
||||
|
||||
# adjust the fallback because of the LSI oscaillator characteristics |
||||
config TASK_WDT_HW_FALLBACK_DELAY |
@ -1,13 +1,10 @@
@@ -1,13 +1,10 @@
|
||||
# ST Microelectronics STM32L151XB MCU |
||||
# STMicroelectronics STM32L151XB MCU |
||||
|
||||
# Copyright (c) 2019 Linaro Ltd. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if SOC_STM32L151XB |
||||
|
||||
config SOC |
||||
default "stm32l151xb" |
||||
|
||||
config NUM_IRQS |
||||
default 45 |
||||
|
@ -1,13 +1,10 @@
@@ -1,13 +1,10 @@
|
||||
# ST Microelectronics STM32L151XB-A MCU |
||||
# STMicroelectronics STM32L151XB-A MCU |
||||
|
||||
# Copyright (c) 2019 Linaro Ltd. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if SOC_STM32L151XBA |
||||
|
||||
config SOC |
||||
default "stm32l151xba" |
||||
|
||||
config NUM_IRQS |
||||
default 45 |
||||
|
@ -1,13 +1,10 @@
@@ -1,13 +1,10 @@
|
||||
# ST Microelectronics STM32L151XC MCU |
||||
# STMicroelectronics STM32L151XC MCU |
||||
|
||||
# Copyright (c) 2020 Abel Sensors |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if SOC_STM32L151XC |
||||
|
||||
config SOC |
||||
default "stm32l151xc" |
||||
|
||||
# Based on stm32cube number of interrupts+1, not datasheet |
||||
config NUM_IRQS |
||||
default 57 |
@ -1,14 +1,10 @@
@@ -1,14 +1,10 @@
|
||||
# ST Microelectronics STM32L152XC MCU |
||||
# STMicroelectronics STM32L152XC MCU |
||||
|
||||
# Copyright (c) 2020 Abel Sensors |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if SOC_STM32L152XC |
||||
|
||||
config SOC |
||||
string |
||||
default "stm32l152xc" |
||||
|
||||
config NUM_IRQS |
||||
int |
||||
default 57 |
@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
|
||||
# STMicroelectronics STM32L1 MCU line |
||||
|
||||
# Copyright (c) 2019 Linaro Ltd. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config SOC_SERIES_STM32L1X |
||||
bool |
||||
select SOC_FAMILY_STM32 |
||||
|
||||
config SOC_SERIES |
||||
default "stm32l1" if SOC_SERIES_STM32L1X |
||||
|
||||
config SOC_STM32L151XB |
||||
bool |
||||
select SOC_SERIES_STM32L1X |
||||
|
||||
config SOC_STM32L151XBA |
||||
bool |
||||
select SOC_SERIES_STM32L1X |
||||
|
||||
config SOC_STM32L151XC |
||||
bool |
||||
select SOC_SERIES_STM32L1X |
||||
|
||||
config SOC_STM32L152XC |
||||
bool |
||||
select SOC_SERIES_STM32L1X |
||||
|
||||
config SOC_STM32L152XE |
||||
bool |
||||
select SOC_SERIES_STM32L1X |
||||
|
||||
config SOC |
||||
default "stm32l151xb" if SOC_STM32L151XB |
||||
default "stm32l151xba" if SOC_STM32L151XBA |
||||
default "stm32l151xc" if SOC_STM32L151XC |
||||
default "stm32l152xc" if SOC_STM32L152XC |
||||
default "stm32l152xe" if SOC_STM32L152XE |
Loading…
Reference in new issue