We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d74d15 commit 03dd503Copy full SHA for 03dd503
embassy-stm32/src/timer/simple_pwm.rs
@@ -414,8 +414,10 @@ macro_rules! impl_waveform_chx {
414
)
415
.await
416
}
417
- #[cfg(not(any(stm32l0, bdma, gpdma)))]
+ #[cfg(not(any(stm32l0)))]
418
TimerBits::Bits32 => {
419
+ #[cfg(any(bdma, gpdma))]
420
+ panic("unsupported timer bits");
421
Transfer::new_write(
422
&mut dma,
423
req,
@@ -425,10 +427,6 @@ macro_rules! impl_waveform_chx {
425
427
426
428
429
- #[cfg(any(stm32l0, bdma, gpdma))]
- _ => {
430
- panic!("unsupported timer bits")
431
- }
432
};
433
434
0 commit comments