diff options
| author | Joel Schulz-Andres <[email protected]> | 2024-05-23 15:34:16 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-23 15:34:16 +0200 |
| commit | 0a5820e3ed423af1788072a5416e04ab86c44c2d (patch) | |
| tree | 5a2b8d3d7a88835aebec0914da234d547e3b3dbe /tests | |
| parent | 27e8ef6e7e720a3c74f7c696ab105915695431c5 (diff) | |
| parent | ded1f9d33520fc847dce8fe72f2fb80f6fa86350 (diff) | |
Merge branch 'embassy-rs:main' into add-miso-pullup
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stm32/src/bin/spi.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/stm32/src/bin/spi.rs b/tests/stm32/src/bin/spi.rs index 59cb0cfd3..c1576bfeb 100644 --- a/tests/stm32/src/bin/spi.rs +++ b/tests/stm32/src/bin/spi.rs | |||
| @@ -58,6 +58,14 @@ async fn main(_spawner: Spawner) { | |||
| 58 | spi.blocking_read::<u8>(&mut []).unwrap(); | 58 | spi.blocking_read::<u8>(&mut []).unwrap(); |
| 59 | spi.blocking_write::<u8>(&[]).unwrap(); | 59 | spi.blocking_write::<u8>(&[]).unwrap(); |
| 60 | 60 | ||
| 61 | // Assert the RCC bit gets disabled on drop. | ||
| 62 | #[cfg(feature = "stm32f429zi")] | ||
| 63 | { | ||
| 64 | defmt::assert!(embassy_stm32::pac::RCC.apb2enr().read().spi1en()); | ||
| 65 | drop(spi); | ||
| 66 | defmt::assert!(!embassy_stm32::pac::RCC.apb2enr().read().spi1en()); | ||
| 67 | } | ||
| 68 | |||
| 61 | info!("Test OK"); | 69 | info!("Test OK"); |
| 62 | cortex_m::asm::bkpt(); | 70 | cortex_m::asm::bkpt(); |
| 63 | } | 71 | } |
