aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/timer/mod.rs
diff options
context:
space:
mode:
authoreZio Pan <[email protected]>2024-02-01 23:41:32 +0800
committerDario Nieuwenhuis <[email protected]>2024-02-10 00:00:43 +0100
commit319f10da5daff415ad2dac17f4eed43313455167 (patch)
treea562dbe94f7451e8b8b35db32e750cc1d1a88a29 /embassy-stm32/src/timer/mod.rs
parent5b646bc3bd0c4a2cd9acf6a59b3a76f2bbcb0bfb (diff)
stm32-timer: filter out c0, f1 and f37x
Diffstat (limited to 'embassy-stm32/src/timer/mod.rs')
-rw-r--r--embassy-stm32/src/timer/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/timer/mod.rs b/embassy-stm32/src/timer/mod.rs
index 8be96b414..be5c6cf29 100644
--- a/embassy-stm32/src/timer/mod.rs
+++ b/embassy-stm32/src/timer/mod.rs
@@ -376,7 +376,7 @@ pub(crate) mod sealed {
376 add_capture_compare_dma_methods!(regs_gp16); 376 add_capture_compare_dma_methods!(regs_gp16);
377 } 377 }
378 378
379 #[cfg(not(any(stm32l0)))] 379 #[cfg(not(any(stm32f1, stm32l0, stm32c0)))]
380 /// Gneral-purpose 32-bit timer instance. 380 /// Gneral-purpose 32-bit timer instance.
381 pub trait GeneralPurpose32bitInstance: GeneralPurpose16bitInstance { 381 pub trait GeneralPurpose32bitInstance: GeneralPurpose16bitInstance {
382 /// Get access to the general purpose 32bit timer registers. 382 /// Get access to the general purpose 32bit timer registers.
@@ -705,7 +705,7 @@ pub trait GeneralPurpose16bitInstance:
705{ 705{
706} 706}
707 707
708#[cfg(not(stm32l0))] 708#[cfg(not(any(stm32f1, stm32l0, stm32c0)))]
709/// Gneral-purpose 32-bit timer instance. 709/// Gneral-purpose 32-bit timer instance.
710pub trait GeneralPurpose32bitInstance: 710pub trait GeneralPurpose32bitInstance:
711 sealed::GeneralPurpose32bitInstance + GeneralPurpose16bitInstance + 'static 711 sealed::GeneralPurpose32bitInstance + GeneralPurpose16bitInstance + 'static
@@ -730,7 +730,7 @@ pub trait GeneralPurpose2ChannelComplementaryInstance:
730{ 730{
731} 731}
732 732
733#[cfg(not(any(stm32l0, stm32l1)))] 733#[cfg(not(any(stm32f37, stm32l0, stm32l1)))]
734/// Advanced control timer instance. 734/// Advanced control timer instance.
735pub trait AdvancedControlInstance: 735pub trait AdvancedControlInstance:
736 sealed::AdvancedControlInstance + GeneralPurpose2ChannelComplementaryInstance + GeneralPurpose16bitInstance + 'static 736 sealed::AdvancedControlInstance + GeneralPurpose2ChannelComplementaryInstance + GeneralPurpose16bitInstance + 'static