stm32/tests: add stm32h753zi, stm32h7a3zi.
This commit is contained in:
@ -60,6 +60,8 @@ async fn main(spawner: Spawner) {
|
||||
let n = 4;
|
||||
#[cfg(feature = "stm32f207zg")]
|
||||
let n = 5;
|
||||
#[cfg(feature = "stm32h753zi")]
|
||||
let n = 6;
|
||||
|
||||
let mac_addr = [0x00, n, 0xDE, 0xAD, 0xBE, 0xEF];
|
||||
|
||||
|
@ -217,8 +217,7 @@ async fn main(_spawner: Spawner) {
|
||||
}
|
||||
|
||||
fn delay() {
|
||||
#[cfg(feature = "stm32h755zi")]
|
||||
cortex_m::asm::delay(10000);
|
||||
#[cfg(not(feature = "stm32h755zi"))]
|
||||
#[cfg(any(feature = "stm32h755zi", feature = "stm32h753zi", feature = "stm32h7a3zi"))]
|
||||
cortex_m::asm::delay(9000);
|
||||
cortex_m::asm::delay(1000);
|
||||
}
|
||||
|
@ -11,7 +11,12 @@ use embassy_stm32::rng::Rng;
|
||||
use embassy_stm32::{bind_interrupts, peripherals, rng};
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
#[cfg(any(feature = "stm32l4a6zg", feature = "stm32h755zi", feature = "stm32f429zi"))]
|
||||
#[cfg(any(
|
||||
feature = "stm32l4a6zg",
|
||||
feature = "stm32h755zi",
|
||||
feature = "stm32h753zi",
|
||||
feature = "stm32f429zi"
|
||||
))]
|
||||
bind_interrupts!(struct Irqs {
|
||||
HASH_RNG => rng::InterruptHandler<peripherals::RNG>;
|
||||
});
|
||||
@ -23,6 +28,7 @@ bind_interrupts!(struct Irqs {
|
||||
feature = "stm32l4a6zg",
|
||||
feature = "stm32l073rz",
|
||||
feature = "stm32h755zi",
|
||||
feature = "stm32h753zi",
|
||||
feature = "stm32f429zi"
|
||||
)))]
|
||||
bind_interrupts!(struct Irqs {
|
||||
|
Reference in New Issue
Block a user