sd.h File Reference
Function library for secure digital memory. More...
#include "cfg/cfg_sd.h"#include <io/kfile.h>#include <io/kblock.h>#include <fs/fatfs/diskio.h>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(ch) {static struct Sd sd; sd_initUnbuf(&sd, (ch));} |
| Initializes the SD driver. | |
Detailed Description
Function library for secure digital memory.
Definition in file sd.h.
Define Documentation
| #define sd_init | ( | ch | ) | {static struct Sd sd; sd_initUnbuf(&sd, (ch));} |
Initializes the SD driver.
- Parameters:
-
ch A pointer to a SPI channel where the SD will read/write to.
- Returns:
- true if initialization succeds, false otherwise.
- Note:
- This API is deprecated, disable CONFIG_SD_OLD_INIT and use the new one instead.
- See also:
- CONFIG_SD_OLD_INIT.
