Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiprio examples for stm32 devices. #3533

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

cedric-vincent
Copy link
Contributor

Commit bbe1eeb 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

Commit bbe1eeb 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 embassy-rs#2749
@Dirbaio
Copy link
Member

Dirbaio commented Nov 13, 2024

thanks!

@Dirbaio Dirbaio added this pull request to the merge queue Nov 13, 2024
Merged via the queue into embassy-rs:main with commit 57a5b3b Nov 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic running examples/stm32f4/multiprio.rs using embassy from github
2 participants