mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 19:09:33 +01:00
remove nop from the empty idle loop
remove nop from the empty idle loop
This commit is contained in:
parent
852d63d9e4
commit
b2b39ab6e6
4 changed files with 1 additions and 4 deletions
|
@ -20,7 +20,6 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 {
|
|||
quote!(#dispatcher();)
|
||||
} else {
|
||||
quote!(loop {
|
||||
rtic::export::nop()
|
||||
})
|
||||
};
|
||||
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
pub use cortex_m::{
|
||||
asm::nop,
|
||||
asm::wfi,
|
||||
interrupt,
|
||||
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},
|
||||
|
|
|
@ -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'");
|
||||
|
|
Loading…
Reference in a new issue