aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronsdagens <pawdzi-7@student.ltu.se>2023-09-28 00:30:01 +0200
committerHenrik Tjäder <henrik@tjaders.com>2023-09-28 05:39:53 +0000
commitb2b39ab6e621bfdd9227d4ae31082ba7e2352ca1 (patch)
tree16968d26e3b0841b3aff40fc1b08b6277b27cfdc
parent852d63d9e41bdd986f3ce209d260c4d244a5fba6 (diff)
remove nop from the empty idle loop
remove nop from the empty idle loop
-rw-r--r--rtic-macros/src/codegen/main.rs1
-rw-r--r--rtic/src/export/cortex_basepri.rs1
-rw-r--r--rtic/src/export/cortex_source_mask.rs1
-rw-r--r--rtic/src/export/riscv_esp32c3.rs2
4 files changed, 1 insertions, 4 deletions
diff --git a/rtic-macros/src/codegen/main.rs b/rtic-macros/src/codegen/main.rs
index 2775d25..3848ab0 100644
--- a/rtic-macros/src/codegen/main.rs
+++ b/rtic-macros/src/codegen/main.rs
@@ -20,7 +20,6 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 {
quote!(#dispatcher();)
} else {
quote!(loop {
- rtic::export::nop()
})
};
diff --git a/rtic/src/export/cortex_basepri.rs b/rtic/src/export/cortex_basepri.rs
index 0eb4eb6..e40ece4 100644
--- a/rtic/src/export/cortex_basepri.rs
+++ b/rtic/src/export/cortex_basepri.rs
@@ -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},
diff --git a/rtic/src/export/cortex_source_mask.rs b/rtic/src/export/cortex_source_mask.rs
index 783be48..22a9201 100644
--- a/rtic/src/export/cortex_source_mask.rs
+++ b/rtic/src/export/cortex_source_mask.rs
@@ -1,5 +1,4 @@
pub use cortex_m::{
- asm::nop,
asm::wfi,
interrupt,
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},
diff --git a/rtic/src/export/riscv_esp32c3.rs b/rtic/src/export/riscv_esp32c3.rs
index bd43245..f093672 100644
--- a/rtic/src/export/riscv_esp32c3.rs
+++ b/rtic/src/export/riscv_esp32c3.rs
@@ -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'");