Skip to content

Commit 8c48095

Browse files
committed
STM32F070X6 devices do not have TIM6, TIM7 and TIM15
1 parent 16bd62e commit 8c48095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/timers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,14 @@ timers! {
221221
#[cfg(any(
222222
feature = "stm32f030x8",
223223
feature = "stm32f030xc",
224-
feature = "stm32f070",
224+
feature = "stm32f070xb",
225225
))]
226226
timers! {
227227
TIM6: (tim6, tim6en, tim6rst, apb1enr, apb1rstr),
228228
TIM15: (tim15, tim15en, tim15rst, apb2enr, apb2rstr),
229229
}
230230

231-
#[cfg(any(feature = "stm32f030xc", feature = "stm32f070"))]
231+
#[cfg(any(feature = "stm32f030xc", feature = "stm32f070xb"))]
232232
timers! {
233233
TIM7: (tim7, tim7en, tim7rst, apb1enr, apb1rstr),
234234
}

0 commit comments

Comments
 (0)