diff --git a/src/lib.rs b/src/lib.rs index 7a8d4d814..5dd455912 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,8 @@ use core::marker::PhantomData; use core::ops::Deref; #[doc = r"Number available in the NVIC for configuring priority"] pub const NVIC_PRIO_BITS: u8 = 2; +pub use cortex_m::peripheral::Peripherals as CorePeripherals; +pub use cortex_m::peripheral::{CBP, CPUID, DCB, DWT, FPB, ITM, MPU, NVIC, SCB, SYST, TPIU}; #[allow(unused_imports)] use generic::*; #[doc = r"Common register and bit access and modify traits"] diff --git a/update.sh b/update.sh index 3fc5af39c..444f3a814 100755 --- a/update.sh +++ b/update.sh @@ -25,7 +25,7 @@ fi rm -rf src mkdir src -svd2rust -i svd/rp2040.svd.patched +svd2rust -i svd/rp2040.svd.patched --reexport-core-peripherals form -i lib.rs -o src rm lib.rs