Skip to content

Commit

Permalink
add TIM3, TIM4, TIM5, TIM17
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Mar 1, 2022
1 parent 632696e commit 0af79e5
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use crate::stm32::{TIM15, TIM16, TIM2, TIM6};
feature = "stm32l4r9",
feature = "stm32l4s9",
))]
use crate::stm32::{TIM17, TIM4, TIM5};
use crate::stm32::{TIM17, TIM3, TIM4, TIM5};

// TIM1/TIM8 ("Advcanced Control Timers") -> no impl
// TIM2/TIM3/TIM4/TIM5 ("General Purpose Timers")
Expand Down Expand Up @@ -267,31 +267,29 @@ hal! {

// missing PAC support
// RCC_APB1RSTR1->TIM3RST not defined
/*
#[cfg(any(
feature = "stm32l451",
feature = "stm32l452",
feature = "stm32l462",
feature = "stm32l471",
feature = "stm32l475",
feature = "stm32l476",
feature = "stm32l485",
feature = "stm32l486",
feature = "stm32l496",
feature = "stm32l4a6",
// feature = "stm32l451",
// feature = "stm32l452",
// feature = "stm32l462",
// feature = "stm32l471",
// feature = "stm32l475",
// feature = "stm32l476",
// feature = "stm32l485",
// feature = "stm32l486",
// feature = "stm32l496",
// feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
feature = "stm32l4r5",
// feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
feature = "stm32l4s9",
))]
hal! {
TIM3: (tim3, free_running_tim3, tim3en, tim3rst, APB1R1, u32),
TIM3: (tim3, free_running_tim3, APB1R1, u16),
}
*/

#[cfg(not(any(
feature = "stm32l412",
Expand All @@ -313,7 +311,7 @@ hal! {
feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
feature = "stm32l4r5",
// feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
Expand Down

0 comments on commit 0af79e5

Please sign in to comment.