fix: layer-by-layer examples

closes: #3794 #3793

Remove 'blinky-irq' from workspace.
During linking from workspace level - embassy-stm32 and example code redefine EXTI15_10 symbol
Building it separately, outside of workspace works

Signed-off-by: Krzysztof Królczyk <Krzysztof.Krolczyk@o2.pl>
This commit is contained in:
Krzysztof Królczyk 2025-02-10 17:38:39 +01:00
parent e173db1151
commit 01b7ff8ff0
No known key found for this signature in database
GPG Key ID: FDAE017682FDBEDC
6 changed files with 11 additions and 5 deletions

View File

@ -3,7 +3,6 @@ resolver = "2"
members = [
"blinky-pac",
"blinky-hal",
"blinky-irq",
"blinky-async",
]

View File

@ -5,7 +5,7 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
cortex-m = "0.7"
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7"
embassy-stm32 = { version = "0.2.0", path = "../../../../embassy-stm32", features = ["stm32l475vg", "memory-x", "exti"] }
embassy-executor = { version = "0.7.0", path = "../../../../embassy-executor", features = ["arch-cortex-m", "executor-thread"] }

View File

@ -5,8 +5,8 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
cortex-m = "0.7"
cortex-m-rt = "0.7"
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
embassy-stm32 = { version = "0.2.0", path = "../../../../embassy-stm32", features = ["stm32l475vg", "memory-x"] }
defmt = "0.3"

View File

@ -1,3 +1,5 @@
[workspace]
[package]
name = "blinky-irq"
version = "0.1.0"
@ -5,7 +7,7 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
cortex-m = "0.7"
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
cortex-m-rt = { version = "0.7" }
embassy-stm32 = { version = "0.2.0", path = "../../../../embassy-stm32", features = ["stm32l475vg", "memory-x", "unstable-pac"] }

View File

@ -5,7 +5,7 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
cortex-m = "0.7"
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7"
stm32-metapac = { version = "16", features = ["stm32l475vg"] }

View File

@ -0,0 +1,5 @@
MEMORY
{
FLASH : ORIGIN = 0x08000000, LENGTH = 2048K /* BANK_1 */
RAM : ORIGIN = 0x20000000, LENGTH = 640K /* SRAM */
}