Implementation of FatFF's disk io. More...
#include "sd.h"#include "powerblocks/core/ios/sdio.h"#include "powerblocks/core/utils/log.h"#include "FreeRTOS.h"#include "task.h"#include <stdbool.h>Macros | |
| #define | SD_ERROR_LOGGING |
| #define | SD_LOG_ERROR(fmt, ...) |
| #define | SD_LOG_INFO(fmt, ...) |
| #define | SD_LOG_DEBUG(fmt, ...) |
Functions | |
| int | sd_initialize () |
| Initializes the sd card system. | |
| void | sd_close () |
| Closes it out. | |
| DSTATUS | sd_disk_status () |
| FatFS disk_status implementation. | |
| DSTATUS | sd_disk_initialize () |
| FatFS disk_initialize implementation. | |
| DRESULT | sd_disk_read (BYTE *buff, LBA_t sector, UINT count) |
| FatFS disk_read implementation. | |
| DRESULT | sd_disk_write (const BYTE *buff, LBA_t sector, UINT count) |
| FatFS disk_read implementation. | |
| DRESULT | sd_disk_ioctl (BYTE cmd, void *buff) |
| FatFS disk_ioctl implementation. | |
Implementation of FatFF's disk io.
SD Card System.
Implementation of FatFF's disk io.
Implements the Wii's SD Card Slot
| #define SD_LOG_ERROR | ( | fmt, | |
| ... ) |
| DSTATUS sd_disk_initialize | ( | ) |
FatFS disk_initialize implementation.
Called on mount after successful status reading.
| int sd_initialize | ( | ) |
Initializes the sd card system.
Initializes the SD card system for use in the file system. Must be called before mounting the file system,
but called only ever once, even if the sd card is removed.