English
Language : 

R01US0079ED0103 Datasheet, PDF (38/66 Pages) Renesas Technology Corp – RENESAS 32-Bit MCU
Data Flash Access Library - Type T01, European Release
User Interface (API)
/* Now call the handler some times */
i = 0;
while ( (myReq_str_str.status_enu == R_FDL_BUSY) && (i < 10) )
{
R_FDL_Handler ();
i++;
}
/* Suspend request and wait until suspended */
srRes_enu = R_FDL_SuspendRequest ();
if (R_FDL_OK != srRes_enu)
{
/* error handler */
while (1)
;
}
while (R_FDL_SUSPENDED != myReq_str_str.status_enu)
{
R_FDL_Handler ();
}
/* Now the FDL is suspended and we can handle other operations or read the Data
Flash ... */
/* Erase resume */
srRes_enu = R_FDL_ResumeRequest();
if (R_FDL_OK != srRes_enu)
{
/* Error handler */
}
/* Finish the erase */
while (myReq_str_str.status_enu == R_FDL_SUSPENDED)
{
R_FDL_Handler();
}
while (myReq_str_str.status_enu == R_FDL_BUSY)
{
R_FDL_Handler();
}
if (R_FDL_OK != myReq_str_str.status_enu)
{
/* Error handler */
}
4.4.3.2 R_FDL_ResumeRequest
Outline: This function requests to resume the FDL operation after suspending.
Interface: C Interface
r_fdl_status_t R_FDL_ResumeRequest (void);
R01US0079ED0103
38
User Manual