/* Unlocks the data memory and FLASH_PECR register access.  */
void DATA_EEPROM_Unlock(void)
/* Unlocks the data memory and FLASH_PECR register access.  */
void DATA_EEPROM_Unlock(void)
{
  if((FLASH->PECR & FLASH_PECR_PELOCK) != RESET)
  {
    FLASH->PEKEYR = FLASH_PEKEY1;
    FLASH->PEKEYR = FLASH_PEKEY2;
  }
}