File tree 5 files changed +11
-17
lines changed
5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ use nb;
38
38
/// # impl U32Ext for u32 { fn ms(self) -> MilliSeconds { MilliSeconds(self) } }
39
39
/// # struct Capture1;
40
40
/// # enum Channel { _1 }
41
- /// # impl hal::Capture for Capture1 {
41
+ /// # impl hal::capture:: Capture for Capture1 {
42
42
/// # type Error = Infallible;
43
43
/// # type Capture = u16;
44
44
/// # type Channel = Channel;
Original file line number Diff line number Diff line change @@ -688,20 +688,14 @@ extern crate nb;
688
688
689
689
pub mod adc;
690
690
pub mod blocking;
691
+ pub mod capture;
691
692
pub mod digital;
692
693
pub mod fmt;
693
694
pub mod prelude;
695
+ pub mod pwm;
696
+ pub mod qei;
694
697
pub mod rng;
695
698
pub mod serial;
696
699
pub mod spi;
697
700
pub mod timer;
698
701
pub mod watchdog;
699
-
700
- mod capture;
701
- pub use capture:: Capture ;
702
-
703
- mod pwm;
704
- pub use pwm:: { Pwm , PwmPin } ;
705
-
706
- mod qei;
707
- pub use qei:: { Direction , Qei } ;
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ pub use crate::blocking::serial::Write as _embedded_hal_blocking_serial_Write;
15
15
pub use crate :: blocking:: spi:: {
16
16
Transfer as _embedded_hal_blocking_spi_Transfer, Write as _embedded_hal_blocking_spi_Write,
17
17
} ;
18
+ pub use crate :: capture:: Capture as _embedded_hal_Capture;
18
19
pub use crate :: digital:: InputPin as _embedded_hal_digital_InputPin;
19
20
pub use crate :: digital:: OutputPin as _embedded_hal_digital_OutputPin;
20
21
pub use crate :: digital:: ToggleableOutputPin as _embedded_hal_digital_ToggleableOutputPin;
22
+ pub use crate :: pwm:: Pwm as _embedded_hal_Pwm;
23
+ pub use crate :: pwm:: PwmPin as _embedded_hal_PwmPin;
24
+ pub use crate :: qei:: Qei as _embedded_hal_Qei;
21
25
pub use crate :: rng:: Read as _embedded_hal_rng_Read;
22
26
pub use crate :: serial:: Read as _embedded_hal_serial_Read;
23
27
pub use crate :: serial:: Write as _embedded_hal_serial_Write;
@@ -26,7 +30,3 @@ pub use crate::timer::CountDown as _embedded_hal_timer_CountDown;
26
30
pub use crate :: watchdog:: Watchdog as _embedded_hal_watchdog_Watchdog;
27
31
pub use crate :: watchdog:: WatchdogDisable as _embedded_hal_watchdog_WatchdogDisable;
28
32
pub use crate :: watchdog:: WatchdogEnable as _embedded_hal_watchdog_WatchdogEnable;
29
- pub use crate :: Capture as _embedded_hal_Capture;
30
- pub use crate :: Pwm as _embedded_hal_Pwm;
31
- pub use crate :: PwmPin as _embedded_hal_PwmPin;
32
- pub use crate :: Qei as _embedded_hal_Qei;
Original file line number Diff line number Diff line change 34
34
/// # impl U32Ext for u32 { fn khz(self) -> KiloHertz { KiloHertz(self) } }
35
35
/// # enum Channel { _1, _2 }
36
36
/// # struct Pwm1;
37
- /// # impl hal::Pwm for Pwm1 {
37
+ /// # impl hal::pwm:: Pwm for Pwm1 {
38
38
/// # type Error = Infallible;
39
39
/// # type Channel = Channel;
40
40
/// # type Time = KiloHertz;
Original file line number Diff line number Diff line change 38
38
/// # trait U32Ext { fn s(self) -> Seconds; }
39
39
/// # impl U32Ext for u32 { fn s(self) -> Seconds { Seconds(self) } }
40
40
/// # struct Qei1;
41
- /// # impl hal::Qei for Qei1 {
41
+ /// # impl hal::qei:: Qei for Qei1 {
42
42
/// # type Error = Infallible;
43
43
/// # type Count = u16;
44
44
/// # fn try_count(&self) -> Result<u16, Self::Error> { Ok(0) }
45
- /// # fn try_direction(&self) -> Result<::hal::Direction, Self::Error> { unimplemented!() }
45
+ /// # fn try_direction(&self) -> Result<::hal::qei:: Direction, Self::Error> { unimplemented!() }
46
46
/// # }
47
47
/// # struct Timer6;
48
48
/// # impl hal::timer::CountDown for Timer6 {
You can’t perform that action at this time.
0 commit comments