aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/chips
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-10-24 13:31:53 +0200
committerDario Nieuwenhuis <[email protected]>2024-11-04 00:47:31 +0100
commit51f6b813e1a4311ffb4adf2e66ed3effb990d246 (patch)
tree66a175cc893b00dcd56bcaff0e6b90b4d0753732 /embassy-nrf/src/chips
parent650f97924ab540d3232b187cbde73d7a0104f734 (diff)
nrf: port to chiptool-based `nrf-pac`.
Diffstat (limited to 'embassy-nrf/src/chips')
-rw-r--r--embassy-nrf/src/chips/nrf51.rs2
-rw-r--r--embassy-nrf/src/chips/nrf52805.rs2
-rw-r--r--embassy-nrf/src/chips/nrf52810.rs2
-rw-r--r--embassy-nrf/src/chips/nrf52811.rs2
-rw-r--r--embassy-nrf/src/chips/nrf52820.rs2
-rw-r--r--embassy-nrf/src/chips/nrf52832.rs2
-rw-r--r--embassy-nrf/src/chips/nrf52833.rs2
-rw-r--r--embassy-nrf/src/chips/nrf52840.rs2
-rw-r--r--embassy-nrf/src/chips/nrf5340_app.rs43
-rw-r--r--embassy-nrf/src/chips/nrf5340_net.rs40
-rw-r--r--embassy-nrf/src/chips/nrf9120.rs36
-rw-r--r--embassy-nrf/src/chips/nrf9160.rs34
12 files changed, 82 insertions, 87 deletions
diff --git a/embassy-nrf/src/chips/nrf51.rs b/embassy-nrf/src/chips/nrf51.rs
index cc1cbc8a0..95fa926c3 100644
--- a/embassy-nrf/src/chips/nrf51.rs
+++ b/embassy-nrf/src/chips/nrf51.rs
@@ -1,4 +1,4 @@
1pub use nrf51_pac as pac; 1pub use nrf_pac as pac;
2 2
3/// The maximum buffer size that the EasyDMA can send/recv in one operation. 3/// The maximum buffer size that the EasyDMA can send/recv in one operation.
4pub const EASY_DMA_SIZE: usize = (1 << 14) - 1; 4pub const EASY_DMA_SIZE: usize = (1 << 14) - 1;
diff --git a/embassy-nrf/src/chips/nrf52805.rs b/embassy-nrf/src/chips/nrf52805.rs
index b51b0c93e..fc8db856c 100644
--- a/embassy-nrf/src/chips/nrf52805.rs
+++ b/embassy-nrf/src/chips/nrf52805.rs
@@ -1,4 +1,4 @@
1pub use nrf52805_pac as pac; 1pub use nrf_pac as pac;
2 2
3/// The maximum buffer size that the EasyDMA can send/recv in one operation. 3/// The maximum buffer size that the EasyDMA can send/recv in one operation.
4pub const EASY_DMA_SIZE: usize = (1 << 14) - 1; 4pub const EASY_DMA_SIZE: usize = (1 << 14) - 1;
diff --git a/embassy-nrf/src/chips/nrf52810.rs b/embassy-nrf/src/chips/nrf52810.rs
index 273098d9b..11a8b4dde 100644
--- a/embassy-nrf/src/chips/nrf52810.rs
+++ b/embassy-nrf/src/chips/nrf52810.rs
@@ -1,4 +1,4 @@
1pub use nrf52810_pac as pac; 1pub use nrf_pac as pac;
2 2
3/// The maximum buffer size that the EasyDMA can send/recv in one operation. 3/// The maximum buffer size that the EasyDMA can send/recv in one operation.
4pub const EASY_DMA_SIZE: usize = (1 << 10) - 1; 4pub const EASY_DMA_SIZE: usize = (1 << 10) - 1;
diff --git a/embassy-nrf/src/chips/nrf52811.rs b/embassy-nrf/src/chips/nrf52811.rs
index 9bce38636..077a36e31 100644
--- a/embassy-nrf/src/chips/nrf52811.rs
+++ b/embassy-nrf/src/chips/nrf52811.rs
@@ -1,4 +1,4 @@
1pub use nrf52811_pac as pac; 1pub use nrf_pac as pac;
2 2
3/// The maximum buffer size that the EasyDMA can send/recv in one operation. 3/// The maximum buffer size that the EasyDMA can send/recv in one operation.
4pub const EASY_DMA_SIZE: usize = (1 << 14) - 1; 4pub const EASY_DMA_SIZE: usize = (1 << 14) - 1;
diff --git a/embassy-nrf/src/chips/nrf52820.rs b/embassy-nrf/src/chips/nrf52820.rs
index 2acae2c8f..6ee16706d 100644
--- a/embassy-nrf/src/chips/nrf52820.rs
+++ b/embassy-nrf/src/chips/nrf52820.rs
@@ -1,4 +1,4 @@
1pub use nrf52820_pac as pac; 1pub use nrf_pac as pac;
2 2
3/// The maximum buffer size that the EasyDMA can send/recv in one operation. 3/// The maximum buffer size that the EasyDMA can send/recv in one operation.
4pub const EASY_DMA_SIZE: usize = (1 << 15) - 1; 4pub const EASY_DMA_SIZE: usize = (1 << 15) - 1;
diff --git a/embassy-nrf/src/chips/nrf52832.rs b/embassy-nrf/src/chips/nrf52832.rs
index 94b373ab3..4a7a29229 100644
--- a/embassy-nrf/src/chips/nrf52832.rs
+++ b/embassy-nrf/src/chips/nrf52832.rs
@@ -1,4 +1,4 @@
1pub use nrf52832_pac as pac; 1pub use nrf_pac as pac;
2 2
3/// The maximum buffer size that the EasyDMA can send/recv in one operation. 3/// The maximum buffer size that the EasyDMA can send/recv in one operation.
4pub const EASY_DMA_SIZE: usize = (1 << 8) - 1; 4pub const EASY_DMA_SIZE: usize = (1 << 8) - 1;
diff --git a/embassy-nrf/src/chips/nrf52833.rs b/embassy-nrf/src/chips/nrf52833.rs
index 09cde1ac1..6d70b763f 100644
--- a/embassy-nrf/src/chips/nrf52833.rs
+++ b/embassy-nrf/src/chips/nrf52833.rs
@@ -1,4 +1,4 @@
1pub use nrf52833_pac as pac; 1pub use nrf_pac as pac;
2 2
3/// The maximum buffer size that the EasyDMA can send/recv in one operation. 3/// The maximum buffer size that the EasyDMA can send/recv in one operation.
4pub const EASY_DMA_SIZE: usize = (1 << 16) - 1; 4pub const EASY_DMA_SIZE: usize = (1 << 16) - 1;
diff --git a/embassy-nrf/src/chips/nrf52840.rs b/embassy-nrf/src/chips/nrf52840.rs
index 0f3d1b250..b6afbf213 100644
--- a/embassy-nrf/src/chips/nrf52840.rs
+++ b/embassy-nrf/src/chips/nrf52840.rs
@@ -1,4 +1,4 @@
1pub use nrf52840_pac as pac; 1pub use nrf_pac as pac;
2 2
3/// The maximum buffer size that the EasyDMA can send/recv in one operation. 3/// The maximum buffer size that the EasyDMA can send/recv in one operation.
4pub const EASY_DMA_SIZE: usize = (1 << 16) - 1; 4pub const EASY_DMA_SIZE: usize = (1 << 16) - 1;
diff --git a/embassy-nrf/src/chips/nrf5340_app.rs b/embassy-nrf/src/chips/nrf5340_app.rs
index 584f6e43c..43588eef3 100644
--- a/embassy-nrf/src/chips/nrf5340_app.rs
+++ b/embassy-nrf/src/chips/nrf5340_app.rs
@@ -5,16 +5,17 @@ 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; 8 #[cfg(feature="rt")]
9 pub use nrf_pac::NVIC_PRIO_BITS;
10 pub use nrf_pac::{common, shared};
9 11
10 #[cfg(feature="rt")] 12 #[cfg(feature="rt")]
11 #[doc(no_inline)] 13 #[doc(no_inline)]
12 pub use nrf5340_app_pac::interrupt; 14 pub use nrf_pac::interrupt;
13 15
14 #[doc(no_inline)] 16 #[doc(no_inline)]
15 pub use nrf5340_app_pac::{ 17 pub use nrf_pac::{
16 Interrupt, 18 Interrupt,
17 Peripherals,
18 19
19 cache_s as cache, 20 cache_s as cache,
20 cachedata_s as cachedata, 21 cachedata_s as cachedata,
@@ -26,11 +27,11 @@ pub mod pac {
26 ctrlap_ns as ctrlap, 27 ctrlap_ns as ctrlap,
27 dcnf_ns as dcnf, 28 dcnf_ns as dcnf,
28 dppic_ns as dppic, 29 dppic_ns as dppic,
29 egu0_ns as egu0, 30 egu_ns as egu,
30 ficr_s as ficr, 31 ficr_s as ficr,
31 fpu_ns as fpu, 32 fpu_ns as fpu,
32 gpiote0_s as gpiote, 33 gpiote_s as gpiote,
33 i2s0_ns as i2s0, 34 i2s_ns as i2s,
34 ipc_ns as ipc, 35 ipc_ns as ipc,
35 kmu_ns as kmu, 36 kmu_ns as kmu,
36 lpcomp_ns as lpcomp, 37 lpcomp_ns as lpcomp,
@@ -38,36 +39,36 @@ pub mod pac {
38 nfct_ns as nfct, 39 nfct_ns as nfct,
39 nvmc_ns as nvmc, 40 nvmc_ns as nvmc,
40 oscillators_ns as oscillators, 41 oscillators_ns as oscillators,
41 p0_ns as p0, 42 gpio_ns as gpio,
42 pdm0_ns as pdm, 43 pdm_ns as pdm,
43 power_ns as power, 44 power_ns as power,
44 pwm0_ns as pwm0, 45 pwm_ns as pwm,
45 qdec0_ns as qdec, 46 qdec_ns as qdec,
46 qspi_ns as qspi, 47 qspi_ns as qspi,
47 regulators_ns as regulators, 48 regulators_ns as regulators,
48 reset_ns as reset, 49 reset_ns as reset,
49 rtc0_ns as rtc0, 50 rtc_ns as rtc,
50 saadc_ns as saadc, 51 saadc_ns as saadc,
51 spim0_ns as spim0, 52 spim_ns as spim,
52 spis0_ns as spis0, 53 spis_ns as spis,
53 spu_s as spu, 54 spu_s as spu,
54 tad_s as tad, 55 tad_s as tad,
55 timer0_ns as timer0, 56 timer_ns as timer,
56 twim0_ns as twim0, 57 twim_ns as twim,
57 twis0_ns as twis0, 58 twis_ns as twis,
58 uarte0_ns as uarte0, 59 uarte_ns as uarte,
59 uicr_s as uicr, 60 uicr_s as uicr,
60 usbd_ns as usbd, 61 usbd_ns as usbd,
61 usbregulator_ns as usbregulator, 62 usbregulator_ns as usbregulator,
62 vmc_ns as vmc, 63 vmc_ns as vmc,
63 wdt0_ns as wdt0, 64 wdt_ns as wdt,
64 }; 65 };
65 66
66 /// Non-Secure mode (NS) peripherals 67 /// Non-Secure mode (NS) peripherals
67 pub mod ns { 68 pub mod ns {
68 #[cfg(feature = "nrf5340-app-ns")] 69 #[cfg(feature = "nrf5340-app-ns")]
69 #[doc(no_inline)] 70 #[doc(no_inline)]
70 pub use nrf5340_app_pac::{ 71 pub use nrf_pac::{
71 CLOCK_NS as CLOCK, 72 CLOCK_NS as CLOCK,
72 COMP_NS as COMP, 73 COMP_NS as COMP,
73 CTRLAP_NS as CTRLAP, 74 CTRLAP_NS as CTRLAP,
@@ -141,7 +142,7 @@ pub mod pac {
141 pub mod s { 142 pub mod s {
142 #[cfg(feature = "nrf5340-app-s")] 143 #[cfg(feature = "nrf5340-app-s")]
143 #[doc(no_inline)] 144 #[doc(no_inline)]
144 pub use nrf5340_app_pac::{ 145 pub use nrf_pac::{
145 CACHEDATA_S as CACHEDATA, 146 CACHEDATA_S as CACHEDATA,
146 CACHEINFO_S as CACHEINFO, 147 CACHEINFO_S as CACHEINFO,
147 CACHE_S as CACHE, 148 CACHE_S as CACHE,
diff --git a/embassy-nrf/src/chips/nrf5340_net.rs b/embassy-nrf/src/chips/nrf5340_net.rs
index d772c9a49..00ff5fea6 100644
--- a/embassy-nrf/src/chips/nrf5340_net.rs
+++ b/embassy-nrf/src/chips/nrf5340_net.rs
@@ -5,16 +5,17 @@ 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; 8 #[cfg(feature="rt")]
9 pub use nrf_pac::NVIC_PRIO_BITS;
10 pub use nrf_pac::{common, shared};
9 11
10 #[cfg(feature="rt")] 12 #[cfg(feature="rt")]
11 #[doc(no_inline)] 13 #[doc(no_inline)]
12 pub use nrf5340_net_pac::interrupt; 14 pub use nrf_pac::interrupt;
13 15
14 #[doc(no_inline)] 16 #[doc(no_inline)]
15 pub use nrf5340_net_pac::{ 17 pub use nrf_pac::{
16 Interrupt, 18 Interrupt,
17 Peripherals,
18 19
19 aar_ns as aar, 20 aar_ns as aar,
20 acl_ns as acl, 21 acl_ns as acl,
@@ -26,25 +27,25 @@ pub mod pac {
26 dcnf_ns as dcnf, 27 dcnf_ns as dcnf,
27 dppic_ns as dppic, 28 dppic_ns as dppic,
28 ecb_ns as ecb, 29 ecb_ns as ecb,
29 egu0_ns as egu0, 30 egu_ns as egu,
30 ficr_ns as ficr, 31 ficr_ns as ficr,
31 gpiote_ns as gpiote, 32 gpiote_ns as gpiote,
32 ipc_ns as ipc, 33 ipc_ns as ipc,
33 nvmc_ns as nvmc, 34 nvmc_ns as nvmc,
34 p0_ns as p0, 35 gpio_ns as gpio,
35 power_ns as power, 36 power_ns as power,
36 radio_ns as radio, 37 radio_ns as radio,
37 reset_ns as reset, 38 reset_ns as reset,
38 rng_ns as rng, 39 rng_ns as rng,
39 rtc0_ns as rtc0, 40 rtc_ns as rtc,
40 spim0_ns as spim0, 41 spim_ns as spim,
41 spis0_ns as spis0, 42 spis_ns as spis,
42 swi0_ns as swi0, 43 swi_ns as swi,
43 temp_ns as temp, 44 temp_ns as temp,
44 timer0_ns as timer0, 45 timer_ns as timer,
45 twim0_ns as twim0, 46 twim_ns as twim,
46 twis0_ns as twis0, 47 twis_ns as twis,
47 uarte0_ns as uarte0, 48 uarte_ns as uarte,
48 uicr_ns as uicr, 49 uicr_ns as uicr,
49 vmc_ns as vmc, 50 vmc_ns as vmc,
50 vreqctrl_ns as vreqctrl, 51 vreqctrl_ns as vreqctrl,
@@ -54,25 +55,17 @@ pub mod pac {
54 ACL_NS as ACL, 55 ACL_NS as ACL,
55 APPMUTEX_NS as APPMUTEX, 56 APPMUTEX_NS as APPMUTEX,
56 APPMUTEX_S as APPMUTEX_S, 57 APPMUTEX_S as APPMUTEX_S,
57 CBP as CBP,
58 CCM_NS as CCM, 58 CCM_NS as CCM,
59 CLOCK_NS as CLOCK, 59 CLOCK_NS as CLOCK,
60 CPUID as CPUID,
61 CTI_NS as CTI, 60 CTI_NS as CTI,
62 CTRLAP_NS as CTRLAP, 61 CTRLAP_NS as CTRLAP,
63 DCB as DCB,
64 DCNF_NS as DCNF, 62 DCNF_NS as DCNF,
65 DPPIC_NS as DPPIC, 63 DPPIC_NS as DPPIC,
66 DWT as DWT,
67 ECB_NS as ECB, 64 ECB_NS as ECB,
68 EGU0_NS as EGU0, 65 EGU0_NS as EGU0,
69 FICR_NS as FICR, 66 FICR_NS as FICR,
70 FPB as FPB,
71 GPIOTE_NS as GPIOTE, 67 GPIOTE_NS as GPIOTE,
72 IPC_NS as IPC, 68 IPC_NS as IPC,
73 ITM as ITM,
74 MPU as MPU,
75 NVIC as NVIC,
76 NVMC_NS as NVMC, 69 NVMC_NS as NVMC,
77 P0_NS as P0, 70 P0_NS as P0,
78 P1_NS as P1, 71 P1_NS as P1,
@@ -82,19 +75,16 @@ pub mod pac {
82 RNG_NS as RNG, 75 RNG_NS as RNG,
83 RTC0_NS as RTC0, 76 RTC0_NS as RTC0,
84 RTC1_NS as RTC1, 77 RTC1_NS as RTC1,
85 SCB as SCB,
86 SPIM0_NS as SPIM0, 78 SPIM0_NS as SPIM0,
87 SPIS0_NS as SPIS0, 79 SPIS0_NS as SPIS0,
88 SWI0_NS as SWI0, 80 SWI0_NS as SWI0,
89 SWI1_NS as SWI1, 81 SWI1_NS as SWI1,
90 SWI2_NS as SWI2, 82 SWI2_NS as SWI2,
91 SWI3_NS as SWI3, 83 SWI3_NS as SWI3,
92 SYST as SYST,
93 TEMP_NS as TEMP, 84 TEMP_NS as TEMP,
94 TIMER0_NS as TIMER0, 85 TIMER0_NS as TIMER0,
95 TIMER1_NS as TIMER1, 86 TIMER1_NS as TIMER1,
96 TIMER2_NS as TIMER2, 87 TIMER2_NS as TIMER2,
97 TPIU as TPIU,
98 TWIM0_NS as TWIM0, 88 TWIM0_NS as TWIM0,
99 TWIS0_NS as TWIS0, 89 TWIS0_NS as TWIS0,
100 UARTE0_NS as UARTE0, 90 UARTE0_NS as UARTE0,
diff --git a/embassy-nrf/src/chips/nrf9120.rs b/embassy-nrf/src/chips/nrf9120.rs
index b53510118..b89570dcd 100644
--- a/embassy-nrf/src/chips/nrf9120.rs
+++ b/embassy-nrf/src/chips/nrf9120.rs
@@ -5,14 +5,16 @@ pub mod pac {
5 // The nRF9120 has a secure and non-secure (NS) mode. 5 // The nRF9120 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 nrf9120_pac::NVIC_PRIO_BITS; 8 #[cfg(feature="rt")]
9 pub use nrf_pac::NVIC_PRIO_BITS;
10 pub use nrf_pac::{common, shared};
9 11
10 #[cfg(feature="rt")] 12 #[cfg(feature="rt")]
11 #[doc(no_inline)] 13 #[doc(no_inline)]
12 pub use nrf9120_pac::interrupt; 14 pub use nrf_pac::interrupt;
13 15
14 #[doc(no_inline)] 16 #[doc(no_inline)]
15 pub use nrf9120_pac::{ 17 pub use nrf_pac::{
16 Interrupt, 18 Interrupt,
17 19
18 cc_host_rgf_s as cc_host_rgf, 20 cc_host_rgf_s as cc_host_rgf,
@@ -20,29 +22,29 @@ pub mod pac {
20 cryptocell_s as cryptocell, 22 cryptocell_s as cryptocell,
21 ctrl_ap_peri_s as ctrl_ap_peri, 23 ctrl_ap_peri_s as ctrl_ap_peri,
22 dppic_ns as dppic, 24 dppic_ns as dppic,
23 egu0_ns as egu0, 25 egu_ns as egu,
24 ficr_s as ficr, 26 ficr_s as ficr,
25 fpu_ns as fpu, 27 fpu_ns as fpu,
26 gpiote0_s as gpiote, 28 gpiote_s as gpiote,
27 i2s_ns as i2s, 29 i2s_ns as i2s,
28 ipc_ns as ipc, 30 ipc_ns as ipc,
29 kmu_ns as kmu, 31 kmu_ns as kmu,
30 nvmc_ns as nvmc, 32 nvmc_ns as nvmc,
31 p0_ns as p0, 33 gpio_ns as gpio,
32 pdm_ns as pdm, 34 pdm_ns as pdm,
33 power_ns as power, 35 power_ns as power,
34 pwm0_ns as pwm0, 36 pwm_ns as pwm,
35 regulators_ns as regulators, 37 regulators_ns as regulators,
36 rtc0_ns as rtc0, 38 rtc_ns as rtc,
37 saadc_ns as saadc, 39 saadc_ns as saadc,
38 spim0_ns as spim0, 40 spim_ns as spim,
39 spis0_ns as spis0, 41 spis_ns as spis,
40 spu_s as spu, 42 spu_s as spu,
41 tad_s as tad, 43 tad_s as tad,
42 timer0_ns as timer0, 44 timer_ns as timer,
43 twim0_ns as twim0, 45 twim_ns as twim,
44 twis0_ns as twis0, 46 twis_ns as twis,
45 uarte0_ns as uarte0, 47 uarte_ns as uarte,
46 uicr_s as uicr, 48 uicr_s as uicr,
47 vmc_ns as vmc, 49 vmc_ns as vmc,
48 wdt_ns as wdt, 50 wdt_ns as wdt,
@@ -51,7 +53,7 @@ pub mod pac {
51 /// Non-Secure mode (NS) peripherals 53 /// Non-Secure mode (NS) peripherals
52 pub mod ns { 54 pub mod ns {
53 #[doc(no_inline)] 55 #[doc(no_inline)]
54 pub use nrf9120_pac::{ 56 pub use nrf_pac::{
55 CLOCK_NS as CLOCK, 57 CLOCK_NS as CLOCK,
56 DPPIC_NS as DPPIC, 58 DPPIC_NS as DPPIC,
57 EGU0_NS as EGU0, 59 EGU0_NS as EGU0,
@@ -108,7 +110,7 @@ pub mod pac {
108 /// Secure mode (S) peripherals 110 /// Secure mode (S) peripherals
109 pub mod s { 111 pub mod s {
110 #[doc(no_inline)] 112 #[doc(no_inline)]
111 pub use nrf9120_pac::{ 113 pub use nrf_pac::{
112 CC_HOST_RGF_S as CC_HOST_RGF, 114 CC_HOST_RGF_S as CC_HOST_RGF,
113 CLOCK_S as CLOCK, 115 CLOCK_S as CLOCK,
114 CRYPTOCELL_S as CRYPTOCELL, 116 CRYPTOCELL_S as CRYPTOCELL,
@@ -121,7 +123,7 @@ pub mod pac {
121 EGU4_S as EGU4, 123 EGU4_S as EGU4,
122 EGU5_S as EGU5, 124 EGU5_S as EGU5,
123 FICR_S as FICR, 125 FICR_S as FICR,
124 FPU as FPU, 126 FPU_NS as FPU,
125 GPIOTE0_S as GPIOTE0, 127 GPIOTE0_S as GPIOTE0,
126 I2S_S as I2S, 128 I2S_S as I2S,
127 IPC_S as IPC, 129 IPC_S as IPC,
diff --git a/embassy-nrf/src/chips/nrf9160.rs b/embassy-nrf/src/chips/nrf9160.rs
index 8107ca175..dba3d1ef5 100644
--- a/embassy-nrf/src/chips/nrf9160.rs
+++ b/embassy-nrf/src/chips/nrf9160.rs
@@ -5,14 +5,16 @@ 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; 8 #[cfg(feature="rt")]
9 pub use nrf_pac::NVIC_PRIO_BITS;
10 pub use nrf_pac::{common, shared};
9 11
10 #[cfg(feature="rt")] 12 #[cfg(feature="rt")]
11 #[doc(no_inline)] 13 #[doc(no_inline)]
12 pub use nrf9160_pac::interrupt; 14 pub use nrf_pac::interrupt;
13 15
14 #[doc(no_inline)] 16 #[doc(no_inline)]
15 pub use nrf9160_pac::{ 17 pub use nrf_pac::{
16 Interrupt, 18 Interrupt,
17 19
18 cc_host_rgf_s as cc_host_rgf, 20 cc_host_rgf_s as cc_host_rgf,
@@ -20,29 +22,29 @@ pub mod pac {
20 cryptocell_s as cryptocell, 22 cryptocell_s as cryptocell,
21 ctrl_ap_peri_s as ctrl_ap_peri, 23 ctrl_ap_peri_s as ctrl_ap_peri,
22 dppic_ns as dppic, 24 dppic_ns as dppic,
23 egu0_ns as egu0, 25 egu_ns as egu,
24 ficr_s as ficr, 26 ficr_s as ficr,
25 fpu_ns as fpu, 27 fpu_ns as fpu,
26 gpiote0_s as gpiote, 28 gpiote_s as gpiote,
27 i2s_ns as i2s, 29 i2s_ns as i2s,
28 ipc_ns as ipc, 30 ipc_ns as ipc,
29 kmu_ns as kmu, 31 kmu_ns as kmu,
30 nvmc_ns as nvmc, 32 nvmc_ns as nvmc,
31 p0_ns as p0, 33 gpio_ns as gpio,
32 pdm_ns as pdm, 34 pdm_ns as pdm,
33 power_ns as power, 35 power_ns as power,
34 pwm0_ns as pwm0, 36 pwm_ns as pwm,
35 regulators_ns as regulators, 37 regulators_ns as regulators,
36 rtc0_ns as rtc0, 38 rtc_ns as rtc,
37 saadc_ns as saadc, 39 saadc_ns as saadc,
38 spim0_ns as spim0, 40 spim_ns as spim,
39 spis0_ns as spis0, 41 spis_ns as spis,
40 spu_s as spu, 42 spu_s as spu,
41 tad_s as tad, 43 tad_s as tad,
42 timer0_ns as timer0, 44 timer_ns as timer,
43 twim0_ns as twim0, 45 twim_ns as twim,
44 twis0_ns as twis0, 46 twis_ns as twis,
45 uarte0_ns as uarte0, 47 uarte_ns as uarte,
46 uicr_s as uicr, 48 uicr_s as uicr,
47 vmc_ns as vmc, 49 vmc_ns as vmc,
48 wdt_ns as wdt, 50 wdt_ns as wdt,
@@ -51,7 +53,7 @@ pub mod pac {
51 /// Non-Secure mode (NS) peripherals 53 /// Non-Secure mode (NS) peripherals
52 pub mod ns { 54 pub mod ns {
53 #[doc(no_inline)] 55 #[doc(no_inline)]
54 pub use nrf9160_pac::{ 56 pub use nrf_pac::{
55 CLOCK_NS as CLOCK, 57 CLOCK_NS as CLOCK,
56 DPPIC_NS as DPPIC, 58 DPPIC_NS as DPPIC,
57 EGU0_NS as EGU0, 59 EGU0_NS as EGU0,
@@ -108,7 +110,7 @@ pub mod pac {
108 /// Secure mode (S) peripherals 110 /// Secure mode (S) peripherals
109 pub mod s { 111 pub mod s {
110 #[doc(no_inline)] 112 #[doc(no_inline)]
111 pub use nrf9160_pac::{ 113 pub use nrf_pac::{
112 CC_HOST_RGF_S as CC_HOST_RGF, 114 CC_HOST_RGF_S as CC_HOST_RGF,
113 CLOCK_S as CLOCK, 115 CLOCK_S as CLOCK,
114 CRYPTOCELL_S as CRYPTOCELL, 116 CRYPTOCELL_S as CRYPTOCELL,