Skip to content

Commit

Permalink
remove nop from the empty idle loop
Browse files Browse the repository at this point in the history
remove nop from the empty idle loop
  • Loading branch information
onsdagens committed Sep 27, 2023
1 parent 852d63d commit a0f117a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion rtic-macros/src/codegen/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 {
quote!(#dispatcher();)
} else {
quote!(loop {
rtic::export::nop()
})
};

Expand Down
1 change: 0 additions & 1 deletion rtic/src/export/cortex_basepri.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use super::cortex_logical2hw;
use cortex_m::register::basepri;
pub use cortex_m::{
asm::nop,
asm::wfi,
interrupt,
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},
Expand Down
1 change: 0 additions & 1 deletion rtic/src/export/cortex_source_mask.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub use cortex_m::{
asm::nop,
asm::wfi,
interrupt,
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},
Expand Down
2 changes: 1 addition & 1 deletion rtic/src/export/riscv_esp32c3.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use esp32c3::INTERRUPT_CORE0; //priority threshold control
pub use esp32c3::{Interrupt, Peripherals};
pub use riscv::{asm::nop, interrupt, register::mcause}; //low level interrupt enable/disable
pub use riscv::{interrupt, register::mcause}; //low level interrupt enable/disable

#[cfg(all(feature = "riscv-esp32c3", not(feature = "riscv-esp32c3-backend")))]
compile_error!("Building for the esp32c3, but 'riscv-esp32c3-backend not selected'");
Expand Down

0 comments on commit a0f117a

Please sign in to comment.