Skip to content

Commit

Permalink
Add --reexport-interrupt feature to svd2rust
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiyukiOkayasu committed Feb 16, 2024
1 parent a886967 commit 7c1181c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ 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;
#[cfg(feature = "rt")]
pub use self::Interrupt as interrupt;
pub use cortex_m::peripheral::Peripherals as CorePeripherals;
pub use cortex_m::peripheral::{CBP, CPUID, DCB, DWT, FPB, ITM, MPU, NVIC, SCB, SYST, TPIU};
#[cfg(feature = "rt")]
pub use cortex_m_rt::interrupt;
#[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 --reexport-core-peripherals
svd2rust -i svd/rp2040.svd.patched --reexport-core-peripherals --reexport-interrupt

form -i lib.rs -o src
rm lib.rs
Expand Down

0 comments on commit 7c1181c

Please sign in to comment.