Skip to content

Commit 6e3bae7

Browse files
nandojvecarlescufi
authored andcommitted
soc: st: Add all missing stm32l010 SoCs
Add minimal SoC entries to enable the whole stm32l010 family. Signed-off-by: Gerson Fernando Budke <[email protected]>
1 parent 5067e54 commit 6e3bae7

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ST Microelectronics STM32L010XX MCU
2+
#
3+
# Copyright (c) 2023 OS Systems
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if SOC_STM32L010X4
7+
8+
config SOC
9+
default "stm32l010x4"
10+
11+
config NUM_IRQS
12+
default 30
13+
14+
endif # SOC_STM32L010X4
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ST Microelectronics STM32L010XX MCU
2+
#
3+
# Copyright (c) 2023 OS Systems
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if SOC_STM32L010X6
7+
8+
config SOC
9+
default "stm32l010x6"
10+
11+
config NUM_IRQS
12+
default 30
13+
14+
endif # SOC_STM32L010X6
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ST Microelectronics STM32L010XX MCU
2+
#
3+
# Copyright (c) 2023 OS Systems
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if SOC_STM32L010X8
7+
8+
config SOC
9+
default "stm32l010x8"
10+
11+
config NUM_IRQS
12+
default 30
13+
14+
endif # SOC_STM32L010X8

soc/arm/st_stm32/stm32l0/Kconfig.soc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@
22

33
# Copyright (c) 2018 Endre Karlson <[email protected]>
44
# Copyright (c) 2021 Nomono AS
5+
# Copyright (c) 2023 OS Systems
56
#
67
# SPDX-License-Identifier: Apache-2.0
78

89
choice
910
prompt "STM32L0x MCU Selection"
1011
depends on SOC_SERIES_STM32L0X
1112

13+
config SOC_STM32L010X4
14+
bool "STM32L010X4"
15+
16+
config SOC_STM32L010X6
17+
bool "STM32L010X6"
18+
19+
config SOC_STM32L010X8
20+
bool "STM32L010X8"
21+
1222
config SOC_STM32L010XB
1323
bool "STM32L010XB"
1424

0 commit comments

Comments
 (0)