/*---------------------------------------------------------------------------* * Routine: IWaitStatusDoneOrError *---------------------------------------------------------------------------* * Description: * Wait for the status to show that the there is an error OR that * the operation has completed. * Inputs: * T_Flash_Renesas_RX62N_Workspace *p -- Workspace * TUInt32 aWordOffset -- Offset of last write/program/etc. //<<---- Not used, but kept to maintaing syntax with UEZ! * Outputs: * T_uezError -- Error code. Returns * UEZ_ERROR_INTERNAL_ERROR if error. *---------------------------------------------------------------------------*/ static T_uezError IWaitStatusDoneOrError( T_Flash_Renesas_RX62N_Workspace *p, TUInt32 aWordOffset) { TUInt32 wait_cnt; /* Set the wait counter with timeout value */ wait_cnt = WAIT_MAX_DF_WRITE; return(R_Flash_Status_Check(wait_cnt)); }
/*---------------------------------------------------------------------------* * Routine: IWaitStatusDoneOrError *---------------------------------------------------------------------------* * Description: * Wait for the status to show that the there is an error OR that * the operation has completed. * Inputs: * T_Flash_Renesas_RX63N_Workspace *p -- Workspace * TUInt32 aWordOffset -- Offset of last write/program/etc. //<<---- Not used, but kept to maintaing syntax with UEZ! * Outputs: * T_uezError -- Error code. Returns * UEZ_ERROR_INTERNAL_ERROR if error. *---------------------------------------------------------------------------*/ static T_uezError IWaitStatusDoneOrError( T_Flash_Renesas_RX63N_Workspace *p, TUInt32 aWordOffset) { TUInt32 wait_cnt; /* Set the wait counter with timeout value */ wait_cnt = WAIT_MAX_DF_WRITE; if(R_Flash_Status_Check(wait_cnt) == 1) return UEZ_ERROR_FAIL; else return UEZ_ERROR_NONE; }