File tree Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ use nb;
3838/// # impl U32Ext for u32 { fn ms(self) -> MilliSeconds { MilliSeconds(self) } }
3939/// # struct Capture1;
4040/// # enum Channel { _1 }
41- /// # impl hal::Capture for Capture1 {
41+ /// # impl hal::capture:: Capture for Capture1 {
4242/// # type Error = Infallible;
4343/// # type Capture = u16;
4444/// # type Channel = Channel;
Original file line number Diff line number Diff line change @@ -688,20 +688,14 @@ extern crate nb;
688688
689689pub mod adc;
690690pub mod blocking;
691+ pub mod capture;
691692pub mod digital;
692693pub mod fmt;
693694pub mod prelude;
695+ pub mod pwm;
696+ pub mod qei;
694697pub mod rng;
695698pub mod serial;
696699pub mod spi;
697700pub mod timer;
698701pub 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;
1515pub use crate :: blocking:: spi:: {
1616 Transfer as _embedded_hal_blocking_spi_Transfer, Write as _embedded_hal_blocking_spi_Write,
1717} ;
18+ pub use crate :: capture:: Capture as _embedded_hal_Capture;
1819pub use crate :: digital:: InputPin as _embedded_hal_digital_InputPin;
1920pub use crate :: digital:: OutputPin as _embedded_hal_digital_OutputPin;
2021pub 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;
2125pub use crate :: rng:: Read as _embedded_hal_rng_Read;
2226pub use crate :: serial:: Read as _embedded_hal_serial_Read;
2327pub use crate :: serial:: Write as _embedded_hal_serial_Write;
@@ -26,7 +30,3 @@ pub use crate::timer::CountDown as _embedded_hal_timer_CountDown;
2630pub use crate :: watchdog:: Watchdog as _embedded_hal_watchdog_Watchdog;
2731pub use crate :: watchdog:: WatchdogDisable as _embedded_hal_watchdog_WatchdogDisable;
2832pub 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 3434/// # impl U32Ext for u32 { fn khz(self) -> KiloHertz { KiloHertz(self) } }
3535/// # enum Channel { _1, _2 }
3636/// # struct Pwm1;
37- /// # impl hal::Pwm for Pwm1 {
37+ /// # impl hal::pwm:: Pwm for Pwm1 {
3838/// # type Error = Infallible;
3939/// # type Channel = Channel;
4040/// # type Time = KiloHertz;
Original file line number Diff line number Diff line change 3838/// # trait U32Ext { fn s(self) -> Seconds; }
3939/// # impl U32Ext for u32 { fn s(self) -> Seconds { Seconds(self) } }
4040/// # struct Qei1;
41- /// # impl hal::Qei for Qei1 {
41+ /// # impl hal::qei:: Qei for Qei1 {
4242/// # type Error = Infallible;
4343/// # type Count = u16;
4444/// # 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!() }
4646/// # }
4747/// # struct Timer6;
4848/// # impl hal::timer::CountDown for Timer6 {
You can’t perform that action at this time.
0 commit comments