Merge pull request #2073 from embassy-rs/rcc-no-spaghetti
nrf/pac: reeport s and ns peripherals always independently of the current mode.
This commit is contained in:
commit
889d482d2d
@ -7,9 +7,12 @@ pub mod pac {
|
|||||||
|
|
||||||
pub use nrf5340_app_pac::NVIC_PRIO_BITS;
|
pub use nrf5340_app_pac::NVIC_PRIO_BITS;
|
||||||
|
|
||||||
|
#[cfg(feature="rt")]
|
||||||
|
#[doc(no_inline)]
|
||||||
|
pub use nrf5340_app_pac::interrupt;
|
||||||
|
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf5340_app_pac::{
|
pub use nrf5340_app_pac::{
|
||||||
interrupt,
|
|
||||||
Interrupt,
|
Interrupt,
|
||||||
Peripherals,
|
Peripherals,
|
||||||
|
|
||||||
@ -60,6 +63,8 @@ pub mod pac {
|
|||||||
wdt0_ns as wdt0,
|
wdt0_ns as wdt0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// Non-Secure mode (NS) peripherals
|
||||||
|
pub mod ns {
|
||||||
#[cfg(feature = "nrf5340-app-ns")]
|
#[cfg(feature = "nrf5340-app-ns")]
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf5340_app_pac::{
|
pub use nrf5340_app_pac::{
|
||||||
@ -130,7 +135,10 @@ pub mod pac {
|
|||||||
WDT0_NS as WDT0,
|
WDT0_NS as WDT0,
|
||||||
WDT1_NS as WDT1,
|
WDT1_NS as WDT1,
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Secure mode (S) peripherals
|
||||||
|
pub mod s {
|
||||||
#[cfg(feature = "nrf5340-app-s")]
|
#[cfg(feature = "nrf5340-app-s")]
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf5340_app_pac::{
|
pub use nrf5340_app_pac::{
|
||||||
@ -210,6 +218,12 @@ pub mod pac {
|
|||||||
WDT0_S as WDT0,
|
WDT0_S as WDT0,
|
||||||
WDT1_S as WDT1,
|
WDT1_S as WDT1,
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "_ns")]
|
||||||
|
pub use ns::*;
|
||||||
|
#[cfg(feature = "_s")]
|
||||||
|
pub use s::*;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
||||||
|
@ -7,9 +7,12 @@ pub mod pac {
|
|||||||
|
|
||||||
pub use nrf5340_net_pac::NVIC_PRIO_BITS;
|
pub use nrf5340_net_pac::NVIC_PRIO_BITS;
|
||||||
|
|
||||||
|
#[cfg(feature="rt")]
|
||||||
|
#[doc(no_inline)]
|
||||||
|
pub use nrf5340_net_pac::interrupt;
|
||||||
|
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf5340_net_pac::{
|
pub use nrf5340_net_pac::{
|
||||||
interrupt,
|
|
||||||
Interrupt,
|
Interrupt,
|
||||||
Peripherals,
|
Peripherals,
|
||||||
|
|
||||||
|
@ -7,9 +7,12 @@ pub mod pac {
|
|||||||
|
|
||||||
pub use nrf9160_pac::NVIC_PRIO_BITS;
|
pub use nrf9160_pac::NVIC_PRIO_BITS;
|
||||||
|
|
||||||
|
#[cfg(feature="rt")]
|
||||||
|
#[doc(no_inline)]
|
||||||
|
pub use nrf9160_pac::interrupt;
|
||||||
|
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf9160_pac::{
|
pub use nrf9160_pac::{
|
||||||
interrupt,
|
|
||||||
Interrupt,
|
Interrupt,
|
||||||
|
|
||||||
cc_host_rgf_s as cc_host_rgf,
|
cc_host_rgf_s as cc_host_rgf,
|
||||||
@ -45,7 +48,8 @@ pub mod pac {
|
|||||||
wdt_ns as wdt,
|
wdt_ns as wdt,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "nrf9160-ns")]
|
/// Non-Secure mode (NS) peripherals
|
||||||
|
pub mod ns {
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf9160_pac::{
|
pub use nrf9160_pac::{
|
||||||
CLOCK_NS as CLOCK,
|
CLOCK_NS as CLOCK,
|
||||||
@ -99,8 +103,10 @@ pub mod pac {
|
|||||||
VMC_NS as VMC,
|
VMC_NS as VMC,
|
||||||
WDT_NS as WDT,
|
WDT_NS as WDT,
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "nrf9160-s")]
|
/// Secure mode (S) peripherals
|
||||||
|
pub mod s {
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use nrf9160_pac::{
|
pub use nrf9160_pac::{
|
||||||
CC_HOST_RGF_S as CC_HOST_RGF,
|
CC_HOST_RGF_S as CC_HOST_RGF,
|
||||||
@ -161,6 +167,12 @@ pub mod pac {
|
|||||||
VMC_S as VMC,
|
VMC_S as VMC,
|
||||||
WDT_S as WDT,
|
WDT_S as WDT,
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "_ns")]
|
||||||
|
pub use ns::*;
|
||||||
|
#[cfg(feature = "_s")]
|
||||||
|
pub use s::*;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
||||||
|
Loading…
Reference in New Issue
Block a user