CircleOS  1
Macros | Functions | Variables
diskio.c File Reference

Go to the source code of this file.

Macros

#define __IO   volatile
 
#define SECTOR_SIZE   512
 
#define ATA   0
 
#define MMC   1
 
#define USB   2
 

Functions

DRESULT SD_ConvertErr (SD_Error error)
 Convert error codes from SD_Error to DRESULT. More...
 
NODEBUG DSTATUS disk_initialize (BYTE drv)
 
NODEBUG DSTATUS disk_status (BYTE drv)
 
NODEBUG DRESULT disk_read (BYTE drv, BYTE *buff, DWORD sector, BYTE count)
 
NODEBUG DRESULT disk_write (BYTE drv, const BYTE *buff, DWORD sector, BYTE count)
 
NODEBUG DWORD get_fattime ()
 
NODEBUG int8_t STORAGE_GetCapacity (uint8_t lun, uint32_t *block_num, uint32_t *block_size)
 
NODEBUG DRESULT disk_ioctl (BYTE drv, BYTE ctrl, void *buff)
 

Variables

SD_CardInfo SDCardInfo
 
SD_CardInfo SDCardInfo2
 

Macro Definition Documentation

#define __IO   volatile

Definition at line 8 of file diskio.c.

#define ATA   0

Definition at line 32 of file diskio.c.

#define MMC   1

Definition at line 33 of file diskio.c.

#define SECTOR_SIZE   512

Definition at line 23 of file diskio.c.

#define USB   2

Definition at line 34 of file diskio.c.

Function Documentation

NODEBUG DSTATUS disk_initialize ( BYTE  drv)

Definition at line 41 of file diskio.c.

NODEBUG DRESULT disk_ioctl ( BYTE  drv,
BYTE  ctrl,
void *  buff 
)

Definition at line 250 of file diskio.c.

NODEBUG DRESULT disk_read ( BYTE  drv,
BYTE *  buff,
DWORD  sector,
BYTE  count 
)

Definition at line 81 of file diskio.c.

NODEBUG DSTATUS disk_status ( BYTE  drv)

Definition at line 67 of file diskio.c.

NODEBUG DRESULT disk_write ( BYTE  drv,
const BYTE *  buff,
DWORD  sector,
BYTE  count 
)

Definition at line 131 of file diskio.c.

NODEBUG DWORD get_fattime ( )

Definition at line 190 of file diskio.c.

NODEBUG DRESULT SD_ConvertErr ( SD_Error  error)
Parameters
errorthe error code from SD_Error
Return values
DRESULT,:SD Card Error code.

Definition at line 286 of file diskio.c.

NODEBUG int8_t STORAGE_GetCapacity ( uint8_t  lun,
uint32_t *  block_num,
uint32_t *  block_size 
)

Definition at line 214 of file diskio.c.

Variable Documentation

SD_CardInfo SDCardInfo
SD_CardInfo SDCardInfo2

Definition at line 35 of file diskio.c.