Skip to content

Commit

Permalink
Fix some-mcu timer compile fail
Browse files Browse the repository at this point in the history
  • Loading branch information
David-OConnor committed Nov 27, 2024
1 parent a920d7b commit e6d67bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stm32-hal2"
version = "1.8.3"
version = "1.8.4"
edition = "2021"
authors = ["David O'Connor <the_alchemist@fastmail.com>"]
description = "Hardware abstraction layer for the STM32 MCUs"
Expand Down
7 changes: 7 additions & 0 deletions src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,14 @@ pub fn clear_update_interrupt(tim_num: u8) {
let bits = 0xffff_ffff;

match tim_num {
#[cfg(not(any(feature = "f373")))]
1 => periphs.TIM1.sr.write(|w| w.bits(bits).uif().clear_bit()),
#[cfg(not(any(
feature = "f410",
feature = "g070",
feature = "l5", // todo PAC bug?
feature = "wb55", // todo PAC bug?
)))]
2 => periphs.TIM2.sr.write(|w| w.bits(bits).uif().clear_bit()),
#[cfg(not(any(feature = "wl")))]
3 => periphs.TIM3.sr.write(|w| w.bits(bits).uif().clear_bit()),
Expand Down

0 comments on commit e6d67bd

Please # to comment.