Skip to content

Commit 9628ccc

Browse files
Merge #118
118: Add adc & Watchdog traits to prelude r=therealprof a=david-sawatzke Fixes #117 Co-authored-by: David Sawatzke <[email protected]>
2 parents d8c78cc + bc3a231 commit 9628ccc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/prelude.rs

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
//! The traits have been renamed to avoid collisions with other items when
44
//! performing a glob import.
55
6+
#[cfg(feature = "unproven")]
7+
pub use adc::OneShot as _embedded_hal_adc_OneShot;
68
pub use blocking::delay::DelayMs as _embedded_hal_blocking_delay_DelayMs;
79
pub use blocking::delay::DelayUs as _embedded_hal_blocking_delay_DelayUs;
810
pub use blocking::i2c::{
@@ -28,6 +30,12 @@ pub use serial::Write as _embedded_hal_serial_Write;
2830
pub use spi::FullDuplex as _embedded_hal_spi_FullDuplex;
2931
pub use timer::CountDown as _embedded_hal_timer_CountDown;
3032
#[cfg(feature = "unproven")]
33+
pub use watchdog::Watchdog as _embedded_hal_watchdog_Watchdog;
34+
#[cfg(feature = "unproven")]
35+
pub use watchdog::WatchdogDisable as _embedded_hal_watchdog_WatchdogDisable;
36+
#[cfg(feature = "unproven")]
37+
pub use watchdog::WatchdogEnable as _embedded_hal_watchdog_WatchdogEnable;
38+
#[cfg(feature = "unproven")]
3139
pub use Capture as _embedded_hal_Capture;
3240
#[cfg(feature = "unproven")]
3341
pub use Pwm as _embedded_hal_Pwm;

0 commit comments

Comments
 (0)