Implement Hash and defmt::Format for InterruptHandler (#2830)
This commit is contained in:
parent
78c63a7a0f
commit
f7c1bdbfc5
@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- `{DmaRxBuf, DmaTxBuf, DmaRxTxBuf}::set_burst_config` (#2543)
|
- `{DmaRxBuf, DmaTxBuf, DmaRxTxBuf}::set_burst_config` (#2543)
|
||||||
- ESP32-S2: DMA support for AES (#2699)
|
- ESP32-S2: DMA support for AES (#2699)
|
||||||
- Added `transfer_in_place_async` and embedded-hal-async implementation to `Spi` (#2691)
|
- Added `transfer_in_place_async` and embedded-hal-async implementation to `Spi` (#2691)
|
||||||
|
- `InterruptHandler` now implements `Hash` and `defmt::Format` (#2830)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|||||||
@ -118,7 +118,8 @@ pub trait InterruptConfigurable: crate::private::Sealed {
|
|||||||
multi_core,
|
multi_core,
|
||||||
doc = "**Note**: Interrupts are handled on the core they were setup on, if a driver is initialized on core 0, and moved to core 1, core 0 will still handle the interrupt."
|
doc = "**Note**: Interrupts are handled on the core they were setup on, if a driver is initialized on core 0, and moved to core 1, core 0 will still handle the interrupt."
|
||||||
)]
|
)]
|
||||||
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub struct InterruptHandler {
|
pub struct InterruptHandler {
|
||||||
f: extern "C" fn(),
|
f: extern "C" fn(),
|
||||||
prio: Priority,
|
prio: Priority,
|
||||||
|
|||||||
@ -117,7 +117,7 @@ pub enum CpuInterrupt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Interrupt priority levels.
|
/// Interrupt priority levels.
|
||||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum Priority {
|
pub enum Priority {
|
||||||
|
|||||||
@ -372,7 +372,7 @@ mod vectored {
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
/// Interrupt priority levels.
|
/// Interrupt priority levels.
|
||||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum Priority {
|
pub enum Priority {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user