diff options
author | Karl Palsson <karlp@tweak.net.au> | 2018-07-23 00:31:00 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2018-07-29 23:31:17 +0300 |
commit | 850931dbcdbdd36a1b1d079a34958d1713eefdf3 (patch) | |
tree | a2bac6fb9678bec0195946ccf7a881f30dd6edb4 /include/libopencm3/stm32/common/flash_common_all.h | |
parent | c5a3350a7d1d01a6477c3d16e80700ecf313be2d (diff) |
stm32: flash_unlock_option_bytes is common code.
The keys differ between some familes, but the documentation and
implementation are standard.
Diffstat (limited to 'include/libopencm3/stm32/common/flash_common_all.h')
-rw-r--r-- | include/libopencm3/stm32/common/flash_common_all.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/common/flash_common_all.h b/include/libopencm3/stm32/common/flash_common_all.h index 00232224..ad7b5560 100644 --- a/include/libopencm3/stm32/common/flash_common_all.h +++ b/include/libopencm3/stm32/common/flash_common_all.h @@ -65,4 +65,10 @@ void flash_lock(void); */ void flash_unlock(void); +/** Unlock the Option Byte Access. + * This enables write access to the option bytes. It is locked by default on + * reset. + */ +void flash_unlock_option_bytes(void); + END_DECLS
\ No newline at end of file |