if ((rowNum < CY_FLASH_NUMBER_ROWS) && (rowData != 0u))
{
/* Copy data to be written into internal variable */
(void)memcpy((void *)¶meters[2u], rowData, CY_FLASH_SIZEOF_ROW);
#if (CY_FLASH_CHECKSUM_WORKAROUND)
for (i = 2u; i < ((CY_FLASH_SIZEOF_ROW / sizeof(uint32)) + 2u); i++)
{
uint32 tmp = parameters[i];
if (tmp != 0u)
{
checksum += tmp;
bits |= tmp;
savedIndex = i;
}
}
if(retValue == CY_SYS_FLASH_SUCCESS)
{
/***************************************************************
* Mask all the exceptions to guarantee that Flash write will
* occur in the atomic way. It will not affect system call
* execution (flash row write) since it is executed in the NMI
* context.
***************************************************************/
interruptState = CyEnterCriticalSection();