|
STM32 Bootloader
Customizable Bootloader for STM32 microcontrollers
|
Functions | |
| const Diskio_drvTypeDef * | SdDiskIoGetDriver (void) |
| Get a pointer to the SD card disk I/O driver structure containing the initialize, status, read, write, and ioctl callbacks used by the FatFs middleware. More... | |
| static void | SdReadCompleteCallback (void) |
| Callback for the SD DMA read transfer complete. | |
| static void | SdWriteCompleteCallback (void) |
| Callback for the SD DMA write transfer complete. | |
| static DSTATUS | SdDiskIoInit (BYTE pdrv) |
| Initialize the SD card disk I/O driver and register DMA callbacks. More... | |
| static DSTATUS | SdDiskIoStatus (BYTE pdrv) |
| Return the current status of the SD card. More... | |
| static DRESULT | SdDiskIoRead (BYTE pdrv, BYTE *buff, DWORD sector, UINT count) |
| Read one or more sectors from the SD card. More... | |
| static DRESULT | SdDiskIoWrite (BYTE pdrv, const BYTE *buff, DWORD sector, UINT count) |
| Write one or more sectors to the SD card. More... | |
| static DRESULT | SdDiskIoIoctl (BYTE pdrv, BYTE cmd, void *buff) |
| Perform miscellaneous disk I/O control operations on the SD card. More... | |
Variables | |
| static volatile bool | isReadComplete = false |
| static volatile bool | isWriteComplete = false |
| const Diskio_drvTypeDef * SdDiskIoGetDriver | ( | void | ) |
Get a pointer to the SD card disk I/O driver structure containing the initialize, status, read, write, and ioctl callbacks used by the FatFs middleware.
Definition at line 103 of file sd_diskio.c.
|
static |
Initialize the SD card disk I/O driver and register DMA callbacks.
| pdrv | Physical drive number. |
Definition at line 113 of file sd_diskio.c.
|
static |
Perform miscellaneous disk I/O control operations on the SD card.
| pdrv | Physical drive number. |
| cmd | Control command code (CTRL_SYNC, GET_SECTOR_COUNT, etc.). |
| buff | Pointer to the parameter buffer. |
Definition at line 237 of file sd_diskio.c.
|
static |
Read one or more sectors from the SD card.
| pdrv | Physical drive number. |
| buff | Pointer to the buffer to store the read data. |
| sector | Start sector number. |
| count | Number of sectors to read. |
Definition at line 137 of file sd_diskio.c.
|
static |
Return the current status of the SD card.
| pdrv | Physical drive number. |
Definition at line 124 of file sd_diskio.c.
|
static |
Write one or more sectors to the SD card.
| pdrv | Physical drive number. |
| buff | Pointer to the data to be written. |
| sector | Start sector number. |
| count | Number of sectors to write. |
Definition at line 185 of file sd_diskio.c.
|
static |
Flag indicating that a DMA read transfer has completed.
Definition at line 97 of file sd_diskio.c.
|
static |
Flag indicating that a DMA write transfer has completed.
Definition at line 100 of file sd_diskio.c.