/* The protection flags indicate access permissions as follow: */
uint32_t EEPROMBlockProtectSet(uint32_t ui32Block, uint32_t ui32Protect)
/* The protection flags indicate access permissions as follow: */
uint32_t EEPROMBlockProtectSet(uint32_t ui32Block, uint32_t ui32Protect)
{
    ASSERT(ui32Block < BLOCKS_FROM_EESIZE(HWREG(EEPROM_EESIZE)));
    HWREG(EEPROM_EEBLOCK) = ui32Block;
    HWREG(EEPROM_EEPROT) = ui32Protect;
    while(HWREG(EEPROM_EEDONE) & EEPROM_EEDONE_WORKING)
    {
    }
    return(HWREG(EEPROM_EEDONE));
}