From 00b87d4568741540ba0be623bba34ce4e8701baf Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Fri, 26 Jan 2024 21:36:05 +0000 Subject: [PATCH] Add --reexport-core-peripherals flag to svd2rust --- src/lib.rs | 2 ++ update.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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