mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +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();)
|
quote!(#dispatcher();)
|
||||||
} else {
|
} else {
|
||||||
quote!(loop {
|
quote!(loop {
|
||||||
rtic::export::nop()
|
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use super::cortex_logical2hw;
|
use super::cortex_logical2hw;
|
||||||
use cortex_m::register::basepri;
|
use cortex_m::register::basepri;
|
||||||
pub use cortex_m::{
|
pub use cortex_m::{
|
||||||
asm::nop,
|
|
||||||
asm::wfi,
|
asm::wfi,
|
||||||
interrupt,
|
interrupt,
|
||||||
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},
|
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
pub use cortex_m::{
|
pub use cortex_m::{
|
||||||
asm::nop,
|
|
||||||
asm::wfi,
|
asm::wfi,
|
||||||
interrupt,
|
interrupt,
|
||||||
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},
|
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use esp32c3::INTERRUPT_CORE0; //priority threshold control
|
use esp32c3::INTERRUPT_CORE0; //priority threshold control
|
||||||
pub use esp32c3::{Interrupt, Peripherals};
|
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")))]
|
#[cfg(all(feature = "riscv-esp32c3", not(feature = "riscv-esp32c3-backend")))]
|
||||||
compile_error!("Building for the esp32c3, but 'riscv-esp32c3-backend not selected'");
|
compile_error!("Building for the esp32c3, but 'riscv-esp32c3-backend not selected'");
|
||||||
|
|
Loading…
Reference in a new issue