1.1.7.4.5 DRV_SDSPI_Tasks Function
C
void DRV_SDSPI_Tasks ( SYS_MODULE_OBJ object )
Summary
Maintains the driver's state machine.
Description
This routine is used to maintain the driver's internal state machine. For synchronous driver, the task routine periodically checks for SD card attach/detach event and initializes the SD card.
Precondition
The DRV_SDSPI_Initialize routine must have been called for the specified SDSPI driver instance.
Parameters
Param | Description |
---|---|
object | Object handle for the specified driver instance (returned from DRV_SDSPI_Initialize) |
Returns
None
Example
//sysObj.drvSDSPI0 is returned by the driver initialization routine //For synchronous driver while(1) { DRV_SDSPI_Tasks(sysObj.drvSDSPI0); // Yield and allow other threads to run vTaskDelay(100 / portTICK_PERIOD_MS); }
Remarks
This routine is normally not called directly by an application.
For synchronous driver with RTOS, this routine is called from a separate RTOS thread.