Reexport NVIC_PRIO_BITS at HAL root.

This allows using RTIC with `#[rtic::app(device = embassy_nrf, ...)]`
This commit is contained in:
Dario Nieuwenhuis
2023-06-08 16:39:05 +02:00
parent bce24e8005
commit 5c2f02c735
6 changed files with 13 additions and 2 deletions

View File

@ -93,8 +93,6 @@ pub mod wdt;
#[cfg_attr(feature = "_nrf9160", path = "chips/nrf9160.rs")]
mod chip;
pub use crate::chip::interrupt;
/// Macro to bind interrupts to handlers.
///
/// 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};
pub use embassy_cortex_m::executor;
pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
pub use crate::chip::interrupt;
pub use crate::pac::NVIC_PRIO_BITS;
pub mod config {
//! Configuration options used when initializing the HAL.