BeRTOS
|
Function library for secure digital memory. More...
Go to the source code of this file.
Data Structures | |
struct | Sd |
SD Card context structure. More... | |
Defines | |
#define | SD_UNBUFFERED BV(0) |
Open SD memory disabling page caching, no modification and partial write are allowed. | |
#define | sd_init(sd, ch, buffered) ((buffered & SD_UNBUFFERED) ? sd_initUnbuf((sd), (ch)) : sd_initBuf((sd), (ch))) |
Initializes the SD driver. |
Function library for secure digital memory.
Definition in file sd.h.
#define sd_init | ( | sd, | |
ch, | |||
buffered | |||
) | ((buffered & SD_UNBUFFERED) ? sd_initUnbuf((sd), (ch)) : sd_initBuf((sd), (ch))) |
Initializes the SD driver.
sd | The SD KBlock context. |
ch | A pointer to a SPI channel where the SD will read/write to. |
buffered | Set to true if you want the KBlock to be buffered, to false otherwise. The FatFs module does not require the device to be buffered because it has an internal cache. This will save 512 bytes of RAM in this case. |