Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude interrupt vector table from host build (e.g. in a build script) #44

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Add missing register fields:
- SERCLKDIV in FlexSPI MCR0.
- FILT_PRSC in ENC FILT.

Exclude the interrupt vector table when we're building for a target with an
operating system. This ensures you can build imxrt-ral in different contexts,
like build scripts.

## [0.5.0] 2022-12-27

Add support for NXP's i.MX RT 1176 dual-core MCUs. An `"imxrt1176_cm7"` feature
Expand Down
2 changes: 1 addition & 1 deletion raltool/src/generate/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ name."#
}
}

#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
#(fn #names();)*
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1011.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1015.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1021.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1051.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1052.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1061.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1062.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1064.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1176_cm4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1176_cm7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down