stm32-timer: filter out c0, f1 and f37x

This commit is contained in:
eZio Pan 2024-02-01 23:41:32 +08:00 committed by Dario Nieuwenhuis
parent 5b646bc3bd
commit 319f10da5d

View File

@ -376,7 +376,7 @@ pub(crate) mod sealed {
add_capture_compare_dma_methods!(regs_gp16); add_capture_compare_dma_methods!(regs_gp16);
} }
#[cfg(not(any(stm32l0)))] #[cfg(not(any(stm32f1, stm32l0, stm32c0)))]
/// Gneral-purpose 32-bit timer instance. /// Gneral-purpose 32-bit timer instance.
pub trait GeneralPurpose32bitInstance: GeneralPurpose16bitInstance { pub trait GeneralPurpose32bitInstance: GeneralPurpose16bitInstance {
/// Get access to the general purpose 32bit timer registers. /// Get access to the general purpose 32bit timer registers.
@ -705,7 +705,7 @@ pub trait GeneralPurpose16bitInstance:
{ {
} }
#[cfg(not(stm32l0))] #[cfg(not(any(stm32f1, stm32l0, stm32c0)))]
/// Gneral-purpose 32-bit timer instance. /// Gneral-purpose 32-bit timer instance.
pub trait GeneralPurpose32bitInstance: pub trait GeneralPurpose32bitInstance:
sealed::GeneralPurpose32bitInstance + GeneralPurpose16bitInstance + 'static sealed::GeneralPurpose32bitInstance + GeneralPurpose16bitInstance + 'static
@ -730,7 +730,7 @@ pub trait GeneralPurpose2ChannelComplementaryInstance:
{ {
} }
#[cfg(not(any(stm32l0, stm32l1)))] #[cfg(not(any(stm32f37, stm32l0, stm32l1)))]
/// Advanced control timer instance. /// Advanced control timer instance.
pub trait AdvancedControlInstance: pub trait AdvancedControlInstance:
sealed::AdvancedControlInstance + GeneralPurpose2ChannelComplementaryInstance + GeneralPurpose16bitInstance + 'static sealed::AdvancedControlInstance + GeneralPurpose2ChannelComplementaryInstance + GeneralPurpose16bitInstance + 'static