diff options
| author | eZio Pan <[email protected]> | 2024-02-01 23:41:32 +0800 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-02-10 00:00:43 +0100 |
| commit | 319f10da5daff415ad2dac17f4eed43313455167 (patch) | |
| tree | a562dbe94f7451e8b8b35db32e750cc1d1a88a29 /embassy-stm32/src/timer/mod.rs | |
| parent | 5b646bc3bd0c4a2cd9acf6a59b3a76f2bbcb0bfb (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.rs | 6 |
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. |
| 710 | pub trait GeneralPurpose32bitInstance: | 710 | pub 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. |
| 735 | pub trait AdvancedControlInstance: | 735 | pub trait AdvancedControlInstance: |
| 736 | sealed::AdvancedControlInstance + GeneralPurpose2ChannelComplementaryInstance + GeneralPurpose16bitInstance + 'static | 736 | sealed::AdvancedControlInstance + GeneralPurpose2ChannelComplementaryInstance + GeneralPurpose16bitInstance + 'static |
