Skip to content

Commit

Permalink
Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 7, 2024
1 parent bfabedd commit bab16b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions esp-hal/src/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
//! [embedded-hal]: https://docs.rs/embedded-hal/latest/embedded_hal/
//! [Inverting TX and RX Pins]: crate::uart#inverting-rx-and-tx-pins

use portable_atomic::{AtomicPtr, AtomicUsize, Ordering};
use portable_atomic::{AtomicPtr, Ordering};
use procmacros::ram;

pub use crate::soc::gpio::*;
Expand All @@ -77,7 +77,6 @@ use crate::{
peripheral::{Peripheral, PeripheralRef},
peripherals::{Interrupt, GPIO, IO_MUX},
private::{self, Sealed},
Cpu,
InterruptConfigurable,
DEFAULT_INTERRUPT_HANDLER,
};
Expand Down Expand Up @@ -789,6 +788,9 @@ impl<const GPIONUM: u8> private::Sealed for GpioPin<GPIONUM> {}
fn ensure_interrupt_handler_bound() {
#[cfg(multi_core)]
{
use portable_atomic::AtomicUsize;

use crate::Cpu;
// On multi-core, we need to call `interrupt::enable` on each core.
// However, we don't want to call it on a core where the handler is already
// bound, otherwise we'd overwrite the priority set for that handler.
Expand Down

0 comments on commit bab16b0

Please sign in to comment.