Fix multiprio examples for stm32 devices.
Commit bbe1eebc has changed the order of TIM candidates when using the
time-driver-any feature. For instance, in the case of STM32F3, it
previously returned TIM2 but now returns TIM15. Consequently, the
"multiprio" example no longer works as it requires three *free* CC
register (for alarms), while TIM15 provides only one (CC1 is always
reserved for regular time keeping).
This commit was successfully tested on STM32F3. Additionally, I
verified that all the examples using a timer for STM32F0 and STM32F4
still build correctly.
Fixes #2749
This commit is contained in:
@@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
# Change stm32f091rc to your chip name, if necessary.
|
||||
embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = [ "defmt", "memory-x", "stm32f091rc", "time-driver-any", "exti", "unstable-pac"] }
|
||||
embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = [ "defmt", "memory-x", "stm32f091rc", "time-driver-tim2", "exti", "unstable-pac"] }
|
||||
cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] }
|
||||
cortex-m-rt = "0.7.0"
|
||||
defmt = "0.3"
|
||||
|
||||
Reference in New Issue
Block a user