aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/timer/simple_pwm.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/embassy-stm32/src/timer/simple_pwm.rs b/embassy-stm32/src/timer/simple_pwm.rs
index 8d3c9a131..757536c2d 100644
--- a/embassy-stm32/src/timer/simple_pwm.rs
+++ b/embassy-stm32/src/timer/simple_pwm.rs
@@ -414,8 +414,10 @@ macro_rules! impl_waveform_chx {
414 ) 414 )
415 .await 415 .await
416 } 416 }
417 #[cfg(not(any(stm32l0, bdma, gpdma)))] 417 #[cfg(not(any(stm32l0)))]
418 TimerBits::Bits32 => { 418 TimerBits::Bits32 => {
419 #[cfg(any(bdma, gpdma))]
420 panic("unsupported timer bits");
419 Transfer::new_write( 421 Transfer::new_write(
420 &mut dma, 422 &mut dma,
421 req, 423 req,
@@ -425,10 +427,6 @@ macro_rules! impl_waveform_chx {
425 ) 427 )
426 .await 428 .await
427 } 429 }
428 #[cfg(any(stm32l0, bdma, gpdma))]
429 _ => {
430 panic!("unsupported timer bits")
431 }
432 }; 430 };
433 }; 431 };
434 432