summaryrefslogtreecommitdiff
path: root/py/objexcept.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-06-18 13:35:53 +1000
committerDamien George <damien@micropython.org>2020-06-22 14:18:15 +1000
commitafd47d58ac25b292bb7ff5ba3b1c53dbf3750d81 (patch)
tree715592cec8912afe1c3f1844e9eba24939b67cde /py/objexcept.h
parentce326699d7bb4e618600475c856f2ee1fe333442 (diff)
stm32/flash: Make flash C-API reusable, and funcs return an error code.
This commit makes the low-level flash C functions usable by code other than flashbdev.c (eg by mboot). Changes in this commit are: - flash_erase() and flash_write() now return an errno error code, a negative value on error. - flash_erase() now automatically locks the flash, as well as unlocking it. - flash_write() now automatically unlocks the flash, as well as locking it. - flashbdev.c is modified for the above changes. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/objexcept.h')
0 files changed, 0 insertions, 0 deletions