Separated hash interrupt bindings.
This commit is contained in:
parent
09973ad482
commit
0b70d67bf6
1 changed files with 16 additions and 0 deletions
|
@ -11,10 +11,26 @@ use embassy_stm32::{bind_interrupts, hash, peripherals};
|
|||
use sha2::{Digest, Sha224, Sha256};
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
#[cfg(any(
|
||||
feature = "stm32l4a6zg",
|
||||
feature = "stm32h755zi",
|
||||
feature = "stm32h753zi"
|
||||
))]
|
||||
bind_interrupts!(struct Irqs {
|
||||
HASH_RNG => hash::InterruptHandler<peripherals::HASH>;
|
||||
});
|
||||
|
||||
#[cfg(any(
|
||||
feature = "stm32wba52cg",
|
||||
feature = "stm32l552ze",
|
||||
feature = "stm32h563zi",
|
||||
feature = "stm32u5a5zj",
|
||||
feature = "stm32u585ai"
|
||||
))]
|
||||
bind_interrupts!(struct Irqs {
|
||||
HASH => hash::InterruptHandler<peripherals::HASH>;
|
||||
});
|
||||
|
||||
#[embassy_executor::main]
|
||||
async fn main(_spawner: Spawner) {
|
||||
let p: embassy_stm32::Peripherals = embassy_stm32::init(config());
|
||||
|
|
Loading…
Reference in a new issue