Skip to content

Commit

Permalink
Fix wrong imports
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajSadel committed Sep 18, 2024
1 parent de9c2ac commit 68a9d40
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions esp-hal/src/timer/timg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,13 @@ where
{
/// Construct a new instance of [`TimerGroup`] in asynchronous mode
pub fn new_async(_timer_group: impl Peripheral<P = T> + 'd) -> Self {
use crate::timer::timg::asynch::{
timg0_timer0_handler,
timg0_timer1_handler,
timg1_timer0_handler,
timg1_timer1_handler,
};
use crate::timer::timg::asynch::timg0_timer0_handler;
#[cfg(timg_timer1)]
use crate::timer::timg::asynch::timg0_timer1_handler;
#[cfg(timg1)]
use crate::timer::timg::asynch::timg1_timer0_handler;
#[cfg(all(timg1, timg_timer1))]
use crate::timer::timg::asynch::timg1_timer1_handler;

match T::id() {
0 => unsafe {
Expand All @@ -326,6 +327,7 @@ where
.unwrap();
}
},
#[cfg(any(timg1, timg_timer1))]
1 => unsafe {
#[cfg(timg1)]
{
Expand Down

0 comments on commit 68a9d40

Please sign in to comment.