mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-30 13:50:37 +00:00
refactor: simplify timer bits handling
This commit is contained in:
parent
7d74d15b18
commit
03dd50316c
@ -414,8 +414,10 @@ macro_rules! impl_waveform_chx {
|
||||
)
|
||||
.await
|
||||
}
|
||||
#[cfg(not(any(stm32l0, bdma, gpdma)))]
|
||||
#[cfg(not(any(stm32l0)))]
|
||||
TimerBits::Bits32 => {
|
||||
#[cfg(any(bdma, gpdma))]
|
||||
panic("unsupported timer bits");
|
||||
Transfer::new_write(
|
||||
&mut dma,
|
||||
req,
|
||||
@ -425,10 +427,6 @@ macro_rules! impl_waveform_chx {
|
||||
)
|
||||
.await
|
||||
}
|
||||
#[cfg(any(stm32l0, bdma, gpdma))]
|
||||
_ => {
|
||||
panic!("unsupported timer bits")
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user