stm32l: flash: rename option unlock keys or consistency

Paves the way for using common code.
This commit is contained in:
Karl Palsson 2018-07-22 21:00:23 +00:00
parent 4517ec81fd
commit c5a3350a7d
2 changed files with 4 additions and 4 deletions

View File

@ -84,8 +84,8 @@
#define FLASH_PRGKEYR_PRGKEY2 ((uint32_t)0x13141516) #define FLASH_PRGKEYR_PRGKEY2 ((uint32_t)0x13141516)
/* Option byte key register (FLASH_OPTKEYR) */ /* Option byte key register (FLASH_OPTKEYR) */
#define FLASH_OPTKEYR_OPTKEY1 ((uint32_t)0xFBEAD9C8) #define FLASH_OPTKEYR_KEY1 ((uint32_t)0xFBEAD9C8)
#define FLASH_OPTKEYR_OPTKEY2 ((uint32_t)0x24252627) #define FLASH_OPTKEYR_KEY2 ((uint32_t)0x24252627)
/* --- FLASH_SR values ----------------------------------------------------- */ /* --- FLASH_SR values ----------------------------------------------------- */
#define FLASH_SR_OPTVERR (1 << 11) #define FLASH_SR_OPTVERR (1 << 11)

View File

@ -72,8 +72,8 @@ void flash_lock_progmem(void)
*/ */
void flash_unlock_option_bytes(void) void flash_unlock_option_bytes(void)
{ {
FLASH_OPTKEYR = FLASH_OPTKEYR_OPTKEY1; FLASH_OPTKEYR = FLASH_OPTKEYR_KEY1;
FLASH_OPTKEYR = FLASH_OPTKEYR_OPTKEY2; FLASH_OPTKEYR = FLASH_OPTKEYR_KEY2;
} }
void flash_lock_option_bytes(void) void flash_lock_option_bytes(void)