SDHost driver implementation for CC32XX devices.
The SDHost header file should be included in an application as follows:
Refer to SD.h for a complete description of APIs & example of use.
This SDHost driver implementation is designed to operate on a CC32XX SD Host controller using a micro DMA controller.
Note: The driver API's are not thread safe and must not be accessed through multiple threads without the use of mutexes.
DMA buffer alignment
When performing disk operations with a word aligned buffer the driver will make transfers using the DMA controller. Alternatively, if the buffer is not aligned, the data will be copied to the internal SD Host controller buffer using a polling method.
DMA Interrupts
When DMA is used, the micro DMA controller generates and IRQ on the perpheral's interrupt vector. This implementation automatically installs a DMA interrupt to service the assigned micro DMA channels.
DMA accessible memory
When DMA is used, it is the responsibility of the application to ensure that read/write buffers reside in memory that is accessible by the DMA.