Skip to content

Commit

Permalink
fix(build): feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Oct 3, 2024
1 parent 6aa2663 commit a6d5c34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion qingke-rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ highcode = []

[dependencies]
qingke-rt-macros = { path = "./macros", version = "0.3" }
qingke = { path = "../", version = "0.3" }
qingke = { path = "../", version = "0.3", features = ["critical-section-impl"] }

[package.metadata.docs.rs]
targets = ["riscv32imac-unknown-none-elf"]
1 change: 1 addition & 0 deletions src/pfic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ pub unsafe fn disable_vtf(channel: u8) {
ptr::write_volatile(PFIC_VTFADDRR0.offset(channel as isize), val & 0xFFFF_FFFE);
}

#[cfg(feature = "critical-section-impl")]
pub unsafe fn wfi_to_wfe(v: bool) {
critical_section::with(|_| {
let mut val = ptr::read_volatile(PFIC_SCTLR);
Expand Down

0 comments on commit a6d5c34

Please sign in to comment.