Skip to content

Commit

Permalink
Try fixing the interrupt latency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfFan committed Feb 16, 2024
1 parent ed25cd2 commit e796169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp-hal/src/interrupt/xtensa.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use procmacros::ram;
use xtensa_lx::interrupt::{self, InterruptNumber};
use xtensa_lx_rt::exception::Context;

Expand Down Expand Up @@ -99,6 +100,7 @@ pub fn clear(_core: Cpu, which: CpuInterrupt) {
}

/// Get status of peripheral interrupts
#[inline(always)]
pub fn get_status(core: Cpu) -> u128 {
unsafe {
#[allow(unused_mut)]
Expand Down Expand Up @@ -188,8 +190,6 @@ pub use vectored::*;

#[cfg(feature = "vectored")]
mod vectored {
use procmacros::ram;

use super::*;
use crate::get_core;

Expand Down

0 comments on commit e796169

Please sign in to comment.