diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-06-19 03:07:26 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-06-19 03:22:12 +0200 |
| commit | 558918651ee99024876fb1f85a559d46edba9548 (patch) | |
| tree | a93d38e4ef400c66a47e624b87818063f86a4226 /tests | |
| parent | adaed307b4d81ed09611e496524b1d96ad04c60d (diff) | |
stm32: update stm32-metapac.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stm32/src/bin/rtc.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/stm32/src/bin/rtc.rs b/tests/stm32/src/bin/rtc.rs index 32d35c42c..582df5753 100644 --- a/tests/stm32/src/bin/rtc.rs +++ b/tests/stm32/src/bin/rtc.rs | |||
| @@ -24,10 +24,8 @@ async fn main(_spawner: Spawner) { | |||
| 24 | 24 | ||
| 25 | info!("Starting LSI"); | 25 | info!("Starting LSI"); |
| 26 | 26 | ||
| 27 | unsafe { | 27 | pac::RCC.csr().modify(|w| w.set_lsion(true)); |
| 28 | pac::RCC.csr().modify(|w| w.set_lsion(true)); | 28 | while !pac::RCC.csr().read().lsirdy() {} |
| 29 | while !pac::RCC.csr().read().lsirdy() {} | ||
| 30 | } | ||
| 31 | 29 | ||
| 32 | info!("Started LSI"); | 30 | info!("Started LSI"); |
| 33 | 31 | ||
