Skip to content

Commit

Permalink
Add --reexport-core-peripherals flag to svd2rust
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Jan 26, 2024
1 parent 4488b0e commit 00b87d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00b87d4

Please sign in to comment.