Robin Mueller
63be6ed5fe
- The GPIO module uses type-level programming now - Implementation heavily based on the ATSAMD GPIO HAL: https://docs.rs/atsamd-hal/0.13.0/atsamd_hal/gpio/v2/index.html - Changes to API, but no passing of peripheral references necessary anymore. All examples and tests updated accordingly
12 lines
542 B
Rust
12 lines
542 B
Rust
//! Prelude
|
||
pub use embedded_hal::prelude::*;
|
||
|
||
// embedded-hal doesn’t yet have v2 in its prelude, so we need to
|
||
// export it ourselves
|
||
pub use embedded_hal::digital::v2::InputPin as _embedded_hal_gpio_InputPin;
|
||
pub use embedded_hal::digital::v2::OutputPin as _embedded_hal_gpio_OutputPin;
|
||
pub use embedded_hal::digital::v2::StatefulOutputPin as _embedded_hal_gpio_StatefulOutputPin;
|
||
pub use embedded_hal::digital::v2::ToggleableOutputPin as _embedded_hal_gpio_ToggleableOutputPin;
|
||
|
||
pub use crate::time::U32Ext as _va108xx_hal_time_U32Ext;
|