remove nop from the empty idle loop

remove nop from the empty idle loop
This commit is contained in:
onsdagens 2023-09-28 00:30:01 +02:00 committed by Henrik Tjäder
parent 852d63d9e4
commit b2b39ab6e6
4 changed files with 1 additions and 4 deletions

View file

@ -20,7 +20,6 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 {
quote!(#dispatcher();)
} else {
quote!(loop {
rtic::export::nop()
})
};

View file

@ -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},

View file

@ -1,5 +1,4 @@
pub use cortex_m::{
asm::nop,
asm::wfi,
interrupt,
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},

View file

@ -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'");