Commit Graph

49 Commits

Author SHA1 Message Date
e8c162ac03 stm32: Remove unneeded unsafe 2023-10-24 07:44:04 +02:00
3616d68aaa stm32 flash: check lock bit before unlocking
It hardfaults if already unlocked flash is unlocked again.
2023-10-10 12:55:43 +03:00
036e00113e stm32/flash: avoid pointless "if flag is set, set it". 2023-07-31 12:48:52 +02:00
036e6ae30c Rename embassy-hal-common to embassy-hal-internal, document it's for internal use only. (#1700) 2023-07-28 13:23:22 +02:00
dff9bd9711 Remove trivial to remove uses of atomic-polyfill. 2023-07-12 18:30:43 +02:00
558918651e stm32: update stm32-metapac. 2023-06-19 03:22:12 +02:00
fee89ed7c7 Remove ability to set alt layout - it does not work. 2023-05-26 15:41:08 +02:00
d82ba4af8a WHY does format on save not work 2023-05-26 00:35:53 +02:00
35d8edbc41 nightly guard async traits only 2023-05-26 00:31:41 +02:00
9115431d35 Move nightly guard and clear data cache reset bit 2023-05-26 00:12:22 +02:00
74104aafda erase_sector_blocking -> blocking_erase_sector 2023-05-25 23:13:20 +02:00
4478d8322b Endless rustfmt pain 2023-05-25 22:58:13 +02:00
88543445d8 Fix end address for assertion 2023-05-25 22:52:57 +02:00
ce331b411c Only assert_not_corrupted_read if we read from the second bank 2023-05-25 22:31:24 +02:00
8528455a75 Errata if _not_ pa12 out low 2023-05-25 22:20:05 +02:00
9eca19b49d *_blocking -> blocking_* 2023-05-25 21:46:26 +02:00
860b519f99 Let Flash<Async/Blocking> be a thing 2023-05-25 21:40:54 +02:00
18d14dff48 Handle errata 2.2.12 2023-05-25 21:14:35 +02:00
b412784a7a Add runtime checks for errata 2.2.11 2023-05-25 20:55:12 +02:00
8073bf22e9 Add sector number tests 2023-05-25 20:07:43 +02:00
e764a3d9ca Fix unused errors 2023-05-25 20:07:43 +02:00
49a31bd5d8 Simplify SR->Result 2023-05-25 20:07:43 +02:00
7371eefa86 Align with new bind_interrupt 2023-05-25 20:07:42 +02:00
15636f05f5 Actually transition to dual bank mode - key was required 2023-05-25 20:07:42 +02:00
efc71e08c4 Default to Async mode 2023-05-25 20:07:42 +02:00
44b6494ab7 Let FlashLayout and FlashRegion depends on a Blocking/Async mode generic 2023-05-25 20:07:42 +02:00
6df6239704 Run format with nightly 2023-05-25 20:07:42 +02:00
c6ffece410 Add more missing nightly guards 2023-05-25 20:07:41 +02:00
cdb1447569 Add missing nightly guards 2023-05-25 20:07:41 +02:00
0e90e98e9b stm32: Add async flash write/erase to f4 2023-05-25 20:07:41 +02:00
14e3e72b0f Add missing implementations for f4 alternate regions 2023-05-23 22:51:26 +02:00
faf506b300 Remove Drop for AltFlashLayout 2023-05-23 22:50:41 +02:00
9a677ab618 common/peripheral: do not require mut in PeripheralRef clone_unchecked. 2023-04-11 23:09:02 +02:00
95b31cf2db Remove Drop on Flash and FlashLayout and propage lifetime to region types
This allows the user to "split" the FlashRegions struct into each region
2023-04-05 10:27:13 +02:00
50b0fb1a37 Let get_flash_regions be public 2023-03-31 15:47:45 +02:00
e7129371d0 Let sector computation be shared across families 2023-03-30 08:32:36 +02:00
e3c4e00be0 Align families 2023-03-30 06:01:56 +02:00
91d8afd371 Add AltFlashLayout for supported F4 chips 2023-03-30 05:27:57 +02:00
ddbd509865 Move as much logic from families to shared module as possible 2023-03-29 13:37:45 +02:00
69944675a3 Expose get_sector in favor of is_eraseable_range 2023-03-29 12:49:13 +02:00
d6ce1c4325 Support running tests in embassy-stm32 and move impl from common back to stm32 2023-03-29 11:31:45 +02:00
bc69eb596e Add is_eraseable_range and split write into consecutive parts 2023-03-25 16:04:45 +01:00
73ccc04231 Change region type name 2023-03-25 13:47:28 +01:00
6c73b23f38 Align F4 family 2023-03-25 05:59:40 +01:00
10c9cc31b1 Remove unnecessary use of atomic-polyfill.
Only use it when CAS is actually needed.
2022-12-23 20:46:49 +01:00
5a265661bb Fix erasing across banks 2022-07-14 20:58:01 +03:00
039acda3a8 Fix writing to last sector of F4 flash 2022-07-14 19:41:39 +03:00
3271ba36e4 Fix cfg flags 2022-07-11 04:07:28 +03:00
734c38eb9c Add F4 flash driver 2022-07-11 03:57:46 +03:00