aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-nrf/src/chips/nrf5340_app.rs2
-rw-r--r--embassy-nrf/src/chips/nrf5340_net.rs2
-rw-r--r--embassy-nrf/src/chips/nrf9160.rs2
-rw-r--r--embassy-nrf/src/lib.rs5
-rw-r--r--embassy-rp/src/lib.rs2
-rw-r--r--embassy-stm32/src/lib.rs2
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")]
94mod chip; 94mod chip;
95 95
96pub 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};
132pub use embassy_cortex_m::executor; 130pub use embassy_cortex_m::executor;
133pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef}; 131pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
134 132
133pub use crate::chip::interrupt;
134pub use crate::pac::NVIC_PRIO_BITS;
135
135pub mod config { 136pub 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"))]
44pub(crate) use rp_pac as pac; 44pub(crate) use rp_pac as pac;
45 45
46pub use crate::pac::NVIC_PRIO_BITS;
47
46embassy_cortex_m::interrupt_mod!( 48embassy_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"))]
112pub(crate) use stm32_metapac as pac; 112pub(crate) use stm32_metapac as pac;
113 113
114pub use crate::pac::NVIC_PRIO_BITS;
115
114#[non_exhaustive] 116#[non_exhaustive]
115pub struct Config { 117pub struct Config {
116 pub rcc: rcc::Config, 118 pub rcc: rcc::Config,