CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
diskio.c File Reference
#include "diskio.h"
#include "usbdisk.h"
#include "atadrive.h"
#include "sdcard.h"
Include dependency graph for diskio.c:

Go to the source code of this file.

Macros

#define ATA   0
#define MMC   1
#define USB   2

Functions

DSTATUS disk_initialize (BYTE pdrv)
DRESULT disk_read (BYTE pdrv, BYTE *buff, DWORD sector, BYTE count)
DSTATUS disk_status (BYTE pdrv)

Macro Definition Documentation

#define ATA   0

Definition at line 16 of file diskio.c.

Referenced by disk_initialize(), disk_read(), and disk_status().

#define MMC   1

Definition at line 17 of file diskio.c.

Referenced by disk_initialize(), disk_read(), and disk_status().

#define USB   2

Definition at line 18 of file diskio.c.

Referenced by disk_initialize(), disk_read(), and disk_status().

Function Documentation

DSTATUS disk_initialize ( BYTE  pdrv)

Definition at line 25 of file diskio.c.

References ATA, MMC, STA_NOINIT, and USB.

Referenced by chk_mounted(), and load_file_from_external_source_to().

Here is the caller graph for this function:

DRESULT disk_read ( BYTE  pdrv,
BYTE buff,
DWORD  sector,
BYTE  count 
)

Definition at line 101 of file diskio.c.

References ATA, MMC, RES_PARERR, and USB.

Referenced by check_fs(), chk_mounted(), f_lseek(), f_read(), f_write(), and move_window().

Here is the caller graph for this function:

DSTATUS disk_status ( BYTE  pdrv)

Definition at line 63 of file diskio.c.

References ATA, MMC, STA_NOINIT, and USB.

Referenced by chk_mounted(), and validate().

Here is the caller graph for this function: