mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
Reexport NVIC_PRIO_BITS at HAL root.
This allows using RTIC with `#[rtic::app(device = embassy_nrf, ...)]`
This commit is contained in:
parent
bce24e8005
commit
5c2f02c735
@ -5,6 +5,8 @@ pub mod pac {
|
|||||||
// The nRF5340 has a secure and non-secure (NS) mode.
|
// The nRF5340 has a secure and non-secure (NS) mode.
|
||||||
// To avoid cfg spam, we remove _ns or _s suffixes here.
|
// To avoid cfg spam, we remove _ns or _s suffixes here.
|
||||||
|
|
||||||
|
pub use nrf5340_app_pac::NVIC_PRIO_BITS;
|
||||||
|
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf5340_app_pac::{
|
pub use nrf5340_app_pac::{
|
||||||
interrupt,
|
interrupt,
|
||||||
|
@ -5,6 +5,8 @@ pub mod pac {
|
|||||||
// The nRF5340 has a secure and non-secure (NS) mode.
|
// The nRF5340 has a secure and non-secure (NS) mode.
|
||||||
// To avoid cfg spam, we remove _ns or _s suffixes here.
|
// To avoid cfg spam, we remove _ns or _s suffixes here.
|
||||||
|
|
||||||
|
pub use nrf5340_net_pac::NVIC_PRIO_BITS;
|
||||||
|
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf5340_net_pac::{
|
pub use nrf5340_net_pac::{
|
||||||
interrupt,
|
interrupt,
|
||||||
|
@ -5,6 +5,8 @@ pub mod pac {
|
|||||||
// The nRF9160 has a secure and non-secure (NS) mode.
|
// The nRF9160 has a secure and non-secure (NS) mode.
|
||||||
// To avoid cfg spam, we remove _ns or _s suffixes here.
|
// To avoid cfg spam, we remove _ns or _s suffixes here.
|
||||||
|
|
||||||
|
pub use nrf9160_pac::NVIC_PRIO_BITS;
|
||||||
|
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf9160_pac::{
|
pub use nrf9160_pac::{
|
||||||
interrupt,
|
interrupt,
|
||||||
|
@ -93,8 +93,6 @@ pub mod wdt;
|
|||||||
#[cfg_attr(feature = "_nrf9160", path = "chips/nrf9160.rs")]
|
#[cfg_attr(feature = "_nrf9160", path = "chips/nrf9160.rs")]
|
||||||
mod chip;
|
mod chip;
|
||||||
|
|
||||||
pub use crate::chip::interrupt;
|
|
||||||
|
|
||||||
/// Macro to bind interrupts to handlers.
|
/// Macro to bind interrupts to handlers.
|
||||||
///
|
///
|
||||||
/// This defines the right interrupt handlers, and creates a unit struct (like `struct Irqs;`)
|
/// 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_cortex_m::executor;
|
||||||
pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
|
pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
|
||||||
|
|
||||||
|
pub use crate::chip::interrupt;
|
||||||
|
pub use crate::pac::NVIC_PRIO_BITS;
|
||||||
|
|
||||||
pub mod config {
|
pub mod config {
|
||||||
//! Configuration options used when initializing the HAL.
|
//! Configuration options used when initializing the HAL.
|
||||||
|
|
||||||
|
@ -43,6 +43,8 @@ pub use rp_pac as pac;
|
|||||||
#[cfg(not(feature = "unstable-pac"))]
|
#[cfg(not(feature = "unstable-pac"))]
|
||||||
pub(crate) use rp_pac as pac;
|
pub(crate) use rp_pac as pac;
|
||||||
|
|
||||||
|
pub use crate::pac::NVIC_PRIO_BITS;
|
||||||
|
|
||||||
embassy_cortex_m::interrupt_mod!(
|
embassy_cortex_m::interrupt_mod!(
|
||||||
TIMER_IRQ_0,
|
TIMER_IRQ_0,
|
||||||
TIMER_IRQ_1,
|
TIMER_IRQ_1,
|
||||||
|
@ -111,6 +111,8 @@ pub use stm32_metapac as pac;
|
|||||||
#[cfg(not(feature = "unstable-pac"))]
|
#[cfg(not(feature = "unstable-pac"))]
|
||||||
pub(crate) use stm32_metapac as pac;
|
pub(crate) use stm32_metapac as pac;
|
||||||
|
|
||||||
|
pub use crate::pac::NVIC_PRIO_BITS;
|
||||||
|
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub rcc: rcc::Config,
|
pub rcc: rcc::Config,
|
||||||
|
Loading…
Reference in New Issue
Block a user