forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soc: arm: st_stm32: stm32l0: Add support for STM32L081
Add support for the STM32L081xx soc series. Signed-off-by: Caspar Friedrich <[email protected]>
- Loading branch information
1 parent
2283b02
commit 8242ef0
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright (c) 2023 Caspar Friedrich <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <st/l0/stm32l071.dtsi> | ||
|
||
/ { | ||
soc { | ||
compatible = "st,stm32l081", "st,stm32l0", "simple-bus"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright (c) 2023 Caspar Friedrich <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <mem.h> | ||
#include <st/l0/stm32l081.dtsi> | ||
|
||
/ { | ||
sram0: memory@20000000 { | ||
reg = <0x20000000 DT_SIZE_K(20)>; | ||
}; | ||
|
||
soc { | ||
flash-controller@40022000 { | ||
flash0: flash@8000000 { | ||
reg = <0x08000000 DT_SIZE_K(192)>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ST Microelectronics STM32L081XX MCU | ||
|
||
# Copyright (c) 2023 Caspar Friedrich <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if SOC_STM32L081XX | ||
|
||
config SOC | ||
default "stm32l081xx" | ||
|
||
config NUM_IRQS | ||
default 32 | ||
|
||
endif # SOC_STM32L081XX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters