]> git.gag.com Git - fw/altos/commit
altos: Fix STM flash programming
authorKeith Packard <keithp@keithp.com>
Sat, 23 Mar 2013 09:21:27 +0000 (02:21 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 23 Mar 2013 09:21:27 +0000 (02:21 -0700)
commit11e0120fb0154ce83a99974d34ccf9a5bbbb3e01
tree594d60d203dec19cefc26bbd03f3fdf69cc05c9a
parent0ad757d63bc219d5332e5999e4e727601ac5c3c2
altos: Fix STM flash programming

Wait for flash to go non-busy after writing or erasing a page and
before jumping back out of the RAM code.

Export a separate 'erase' operation for testing.

Re-lock flash after every operation.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_flash_stm.c
src/stm/ao_flash_stm.h