diff options
| -rw-r--r-- | embassy-nrf/src/chips/nrf5340_app.rs | 2 | ||||
| -rw-r--r-- | embassy-nrf/src/chips/nrf5340_net.rs | 2 | ||||
| -rw-r--r-- | embassy-nrf/src/chips/nrf9160.rs | 2 | ||||
| -rw-r--r-- | embassy-nrf/src/lib.rs | 5 | ||||
| -rw-r--r-- | embassy-rp/src/lib.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32/src/lib.rs | 2 |
6 files changed, 13 insertions, 2 deletions
diff --git a/embassy-nrf/src/chips/nrf5340_app.rs b/embassy-nrf/src/chips/nrf5340_app.rs index c10520051..cb879f736 100644 --- a/embassy-nrf/src/chips/nrf5340_app.rs +++ b/embassy-nrf/src/chips/nrf5340_app.rs | |||
| @@ -5,6 +5,8 @@ pub mod pac { | |||
| 5 | // The nRF5340 has a secure and non-secure (NS) mode. | 5 | // The nRF5340 has a secure and non-secure (NS) mode. |
| 6 | // To avoid cfg spam, we remove _ns or _s suffixes here. | 6 | // To avoid cfg spam, we remove _ns or _s suffixes here. |
| 7 | 7 | ||
| 8 | pub use nrf5340_app_pac::NVIC_PRIO_BITS; | ||
| 9 | |||
| 8 | #[doc(no_inline)] | 10 | #[doc(no_inline)] |
| 9 | pub use nrf5340_app_pac::{ | 11 | pub use nrf5340_app_pac::{ |
| 10 | interrupt, | 12 | interrupt, |
diff --git a/embassy-nrf/src/chips/nrf5340_net.rs b/embassy-nrf/src/chips/nrf5340_net.rs index a6fb1d4cc..6e2c0bb67 100644 --- a/embassy-nrf/src/chips/nrf5340_net.rs +++ b/embassy-nrf/src/chips/nrf5340_net.rs | |||
| @@ -5,6 +5,8 @@ pub mod pac { | |||
| 5 | // The nRF5340 has a secure and non-secure (NS) mode. | 5 | // The nRF5340 has a secure and non-secure (NS) mode. |
| 6 | // To avoid cfg spam, we remove _ns or _s suffixes here. | 6 | // To avoid cfg spam, we remove _ns or _s suffixes here. |
| 7 | 7 | ||
| 8 | pub use nrf5340_net_pac::NVIC_PRIO_BITS; | ||
| 9 | |||
| 8 | #[doc(no_inline)] | 10 | #[doc(no_inline)] |
| 9 | pub use nrf5340_net_pac::{ | 11 | pub use nrf5340_net_pac::{ |
| 10 | interrupt, | 12 | interrupt, |
diff --git a/embassy-nrf/src/chips/nrf9160.rs b/embassy-nrf/src/chips/nrf9160.rs index b6ae78bbe..9944ac4af 100644 --- a/embassy-nrf/src/chips/nrf9160.rs +++ b/embassy-nrf/src/chips/nrf9160.rs | |||
| @@ -5,6 +5,8 @@ pub mod pac { | |||
| 5 | // The nRF9160 has a secure and non-secure (NS) mode. | 5 | // The nRF9160 has a secure and non-secure (NS) mode. |
| 6 | // To avoid cfg spam, we remove _ns or _s suffixes here. | 6 | // To avoid cfg spam, we remove _ns or _s suffixes here. |
| 7 | 7 | ||
| 8 | pub use nrf9160_pac::NVIC_PRIO_BITS; | ||
| 9 | |||
| 8 | #[doc(no_inline)] | 10 | #[doc(no_inline)] |
| 9 | pub use nrf9160_pac::{ | 11 | pub use nrf9160_pac::{ |
| 10 | interrupt, | 12 | interrupt, |
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index a73d22a63..ddabf93a9 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -93,8 +93,6 @@ pub mod wdt; | |||
| 93 | #[cfg_attr(feature = "_nrf9160", path = "chips/nrf9160.rs")] | 93 | #[cfg_attr(feature = "_nrf9160", path = "chips/nrf9160.rs")] |
| 94 | mod chip; | 94 | mod chip; |
| 95 | 95 | ||
| 96 | pub use crate::chip::interrupt; | ||
| 97 | |||
| 98 | /// Macro to bind interrupts to handlers. | 96 | /// Macro to bind interrupts to handlers. |
| 99 | /// | 97 | /// |
| 100 | /// This defines the right interrupt handlers, and creates a unit struct (like `struct Irqs;`) | 98 | /// This defines the right interrupt handlers, and creates a unit struct (like `struct Irqs;`) |
| @@ -132,6 +130,9 @@ pub use chip::{peripherals, Peripherals, EASY_DMA_SIZE}; | |||
| 132 | pub use embassy_cortex_m::executor; | 130 | pub use embassy_cortex_m::executor; |
| 133 | pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef}; | 131 | pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef}; |
| 134 | 132 | ||
| 133 | pub use crate::chip::interrupt; | ||
| 134 | pub use crate::pac::NVIC_PRIO_BITS; | ||
| 135 | |||
| 135 | pub mod config { | 136 | pub mod config { |
| 136 | //! Configuration options used when initializing the HAL. | 137 | //! Configuration options used when initializing the HAL. |
| 137 | 138 | ||
diff --git a/embassy-rp/src/lib.rs b/embassy-rp/src/lib.rs index 70a410ef9..5e3e59692 100644 --- a/embassy-rp/src/lib.rs +++ b/embassy-rp/src/lib.rs | |||
| @@ -43,6 +43,8 @@ pub use rp_pac as pac; | |||
| 43 | #[cfg(not(feature = "unstable-pac"))] | 43 | #[cfg(not(feature = "unstable-pac"))] |
| 44 | pub(crate) use rp_pac as pac; | 44 | pub(crate) use rp_pac as pac; |
| 45 | 45 | ||
| 46 | pub use crate::pac::NVIC_PRIO_BITS; | ||
| 47 | |||
| 46 | embassy_cortex_m::interrupt_mod!( | 48 | embassy_cortex_m::interrupt_mod!( |
| 47 | TIMER_IRQ_0, | 49 | TIMER_IRQ_0, |
| 48 | TIMER_IRQ_1, | 50 | TIMER_IRQ_1, |
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index b42864567..565d6817c 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs | |||
| @@ -111,6 +111,8 @@ pub use stm32_metapac as pac; | |||
| 111 | #[cfg(not(feature = "unstable-pac"))] | 111 | #[cfg(not(feature = "unstable-pac"))] |
| 112 | pub(crate) use stm32_metapac as pac; | 112 | pub(crate) use stm32_metapac as pac; |
| 113 | 113 | ||
| 114 | pub use crate::pac::NVIC_PRIO_BITS; | ||
| 115 | |||
| 114 | #[non_exhaustive] | 116 | #[non_exhaustive] |
| 115 | pub struct Config { | 117 | pub struct Config { |
| 116 | pub rcc: rcc::Config, | 118 | pub rcc: rcc::Config, |
