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 the driver will use DMA for transferring data. Because of this, data must be 32-bit aligned or the operation can be unreliable. Please make sure that data that is either written to or read from the SD host driver has the attribute: attribute((aligned (4)))
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.