diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 22:58:13 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 22:58:13 +0200 |
| commit | 4478d8322b41b614599202711ddbf42df1c8b50b (patch) | |
| tree | 45ff37250a1c4fa87d8511f977b2737d24a9d08f /embassy-stm32 | |
| parent | 88543445d8414b94720654f1e5dba900e8a75cce (diff) | |
Endless rustfmt pain
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/flash/f4.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/flash/f4.rs b/embassy-stm32/src/flash/f4.rs index 2dd6d85fd..8a0e2001b 100644 --- a/embassy-stm32/src/flash/f4.rs +++ b/embassy-stm32/src/flash/f4.rs | |||
| @@ -443,7 +443,8 @@ pub(crate) fn assert_not_corrupted_read(end_address: u32) { | |||
| 443 | const REVISION_3: u16 = 0x2001; | 443 | const REVISION_3: u16 = 0x2001; |
| 444 | 444 | ||
| 445 | #[allow(unused)] | 445 | #[allow(unused)] |
| 446 | let second_bank_read = get_flash_regions().last().unwrap().bank == FlashBank::Bank2 && end_address > (FLASH_SIZE / 2) as u32; | 446 | let second_bank_read = |
| 447 | get_flash_regions().last().unwrap().bank == FlashBank::Bank2 && end_address > (FLASH_SIZE / 2) as u32; | ||
| 447 | 448 | ||
| 448 | #[cfg(any( | 449 | #[cfg(any( |
| 449 | feature = "stm32f427ai", | 450 | feature = "stm32f427ai", |
| @@ -491,8 +492,7 @@ pub(crate) fn assert_not_corrupted_read(end_address: u32) { | |||
| 491 | feature = "stm32f439vg", | 492 | feature = "stm32f439vg", |
| 492 | feature = "stm32f439zg", | 493 | feature = "stm32f439zg", |
| 493 | ))] | 494 | ))] |
| 494 | if second_bank_read && unsafe { pac::DBGMCU.idcode().read().rev_id() < REVISION_3 && !pa12_is_output_pull_low() } | 495 | if second_bank_read && unsafe { pac::DBGMCU.idcode().read().rev_id() < REVISION_3 && !pa12_is_output_pull_low() } { |
| 495 | { | ||
| 496 | panic!("Read corruption for stm32f42xxG and stm32f43xxG in dual bank mode when PA12 is in use for chips below revision 3, see errata 2.2.11"); | 496 | panic!("Read corruption for stm32f42xxG and stm32f43xxG in dual bank mode when PA12 is in use for chips below revision 3, see errata 2.2.11"); |
| 497 | } | 497 | } |
| 498 | } | 498 | } |
