diff --git a/arduino-hal/src/lib.rs b/arduino-hal/src/lib.rs index e0d5c69373..6534847cd6 100644 --- a/arduino-hal/src/lib.rs +++ b/arduino-hal/src/lib.rs @@ -96,6 +96,12 @@ compile_error!( #[doc(cfg(feature = "rt"))] pub use avr_device::entry; +/// Reexport of the [`avr_device`](https://docs.rs/avr-device) crate. +/// +/// This makes items such as `avr_device::interrupt` available without depending +/// on `avr-device` directly and keeping its version in sync manually. +pub use avr_device; + #[doc(no_inline)] #[cfg(feature = "mcu-atmega")] pub use atmega_hal as hal; diff --git a/mcu/atmega-hal/src/lib.rs b/mcu/atmega-hal/src/lib.rs index d076052345..a0aa3e6ffb 100644 --- a/mcu/atmega-hal/src/lib.rs +++ b/mcu/atmega-hal/src/lib.rs @@ -112,6 +112,12 @@ pub use avr_device::atmega88p as pac; #[cfg(feature = "rt")] pub use avr_device::entry; +/// Reexport of the [`avr_device`](https://docs.rs/avr-device) crate. +/// +/// This makes items such as `avr_device::interrupt` available without depending +/// on `avr-device` directly and keeping its version in sync manually. +pub use avr_device; + #[cfg(feature = "device-selected")] pub use pac::Peripherals; diff --git a/mcu/attiny-hal/src/lib.rs b/mcu/attiny-hal/src/lib.rs index a8bf1541e0..da89b84019 100644 --- a/mcu/attiny-hal/src/lib.rs +++ b/mcu/attiny-hal/src/lib.rs @@ -57,6 +57,12 @@ pub use avr_device::attiny88 as pac; #[cfg(feature = "rt")] pub use avr_device::entry; +/// Reexport of the [`avr_device`](https://docs.rs/avr-device) crate. +/// +/// This makes items such as `avr_device::interrupt` available without depending +/// on `avr-device` directly and keeping its version in sync manually. +pub use avr_device; + #[cfg(feature = "device-selected")] pub use pac::Peripherals;