/* Validates the given user key for flash erase APIs.  */
static status_t flash_check_user_key(uint32_t key)
/* Validates the given user key for flash erase APIs.  */
static status_t flash_check_user_key(uint32_t key)
{
    if (key != kFLASH_apiEraseKey)
    {
        return kStatus_FLASH_EraseKeyError;
    }
    return kStatus_FLASH_Success;
}