doc fix
This commit is contained in:
parent
6c690ab259
commit
0f94006be3
1 changed files with 11 additions and 8 deletions
|
@ -20,10 +20,10 @@
|
||||||
//!
|
//!
|
||||||
//! mapping:
|
//! mapping:
|
||||||
//!
|
//!
|
||||||
//! Basic Timer --> BasicInstance
|
//! BasicInstance --> Basic Timer
|
||||||
//! 1-channel Timer, 2-channel Timer, General Purpose 16-bit Timer --> CaptureCompare16bitInstance
|
//! CaptureCompare16bitInstance --> 1-channel Timer, 2-channel Timer, General Purpose 16-bit Timer
|
||||||
//! General Purpose 32-bit Timer --> CaptureCompare32bitInstance
|
//! CaptureCompare32bitInstance --> General Purpose 32-bit Timer
|
||||||
//! 1-channel with one complentary Timer, 2-channel with one complentary Timer, Advance Control Timer --> ComplementaryCaptureCompare16bitInstance
|
//! ComplementaryCaptureCompare16bitInstance --> 1-channel with one complentary Timer, 2-channel with one complentary Timer, Advance Control Timer
|
||||||
|
|
||||||
#[cfg(not(stm32l0))]
|
#[cfg(not(stm32l0))]
|
||||||
pub mod complementary_pwm;
|
pub mod complementary_pwm;
|
||||||
|
@ -667,7 +667,8 @@ impl From<OutputPolarity> for bool {
|
||||||
/// Basic 16-bit timer instance.
|
/// Basic 16-bit timer instance.
|
||||||
pub trait BasicInstance: sealed::BasicInstance + sealed::BasicNoCr2Instance + sealed::CoreInstance + 'static {}
|
pub trait BasicInstance: sealed::BasicInstance + sealed::BasicNoCr2Instance + sealed::CoreInstance + 'static {}
|
||||||
|
|
||||||
/// General-purpose 16-bit timer instance.
|
// It's just a General-purpose 16-bit timer instance.
|
||||||
|
/// Capture Compare timer instance.
|
||||||
pub trait CaptureCompare16bitInstance:
|
pub trait CaptureCompare16bitInstance:
|
||||||
BasicInstance
|
BasicInstance
|
||||||
+ sealed::GeneralPurpose2ChannelInstance
|
+ sealed::GeneralPurpose2ChannelInstance
|
||||||
|
@ -678,14 +679,16 @@ pub trait CaptureCompare16bitInstance:
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(stm32l0))]
|
#[cfg(not(stm32l0))]
|
||||||
/// Gneral-purpose 32-bit timer instance.
|
// It's just a General-purpose 32-bit timer instance.
|
||||||
|
/// Capture Compare 32-bit timer instance.
|
||||||
pub trait CaptureCompare32bitInstance:
|
pub trait CaptureCompare32bitInstance:
|
||||||
sealed::GeneralPurpose32bitInstance + CaptureCompare16bitInstance + 'static
|
CaptureCompare16bitInstance + sealed::GeneralPurpose32bitInstance + 'static
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(stm32l0))]
|
#[cfg(not(stm32l0))]
|
||||||
/// Advanced control timer instance.
|
// It's just a Advanced Control timer instance.
|
||||||
|
/// Complementary Capture Compare 32-bit timer instance.
|
||||||
pub trait ComplementaryCaptureCompare16bitInstance:
|
pub trait ComplementaryCaptureCompare16bitInstance:
|
||||||
CaptureCompare16bitInstance
|
CaptureCompare16bitInstance
|
||||||
+ sealed::GeneralPurpose1ChannelComplementaryInstance
|
+ sealed::GeneralPurpose1ChannelComplementaryInstance
|
||||||
|
|
Loading…
Add table
Reference in a new issue