CARME-M4 BSP  V1.5
diskio.c File Reference

Low level disk I/O module skeleton for FatFs. More...

#include <string.h>
#include "diskio.h"
#include "stm32f4xx.h"
#include "stm32f4_sdio_sd.h"
+ Include dependency graph for diskio.c:

Go to the source code of this file.

Macros

#define BLOCK_SIZE   512
 

Functions

DSTATUS disk_initialize (BYTE drv)
 Initialize the SD Card
Returns the disk status. More...
 
DSTATUS disk_status (BYTE drv)
 Return disk status. More...
 
DRESULT disk_read (BYTE drv, BYTE *buff, DWORD sector, UINT count)
 Read from the SD Card. More...
 

Detailed Description

Low level disk I/O module skeleton for FatFs.

Low level disk I/O module skeleton for FatFs.
.

Version
R0.10
Date
2013-10-02
Author
ChaN
Note
If a working storage control module is available, it should be attached to the FatFs via a glue function rather than modifying it.
This is an example of glue functions to attach various exsisting storage control module to the FatFs module with a defined API.

Copyright © 2013, ChaN, all right reserved.

FatFs module is a generic FAT file system module for small embedded systems. This is a free software that opened for education, research and commercial developments under license policy of following terms.

  • The FatFs module is a free software and there is NO WARRANTY.
  • No restriction on use. You can use, modify and redistribute it for personal, non-profit or commercial products UNDER YOUR RESPONSIBILITY.
  • Redistributions of source code must retain the above copyright notice.
Version
R0.10
Date
2013-10-02
Author
ChaN
Note
If a working storage control module is available, it should be attached to the FatFs via a glue function rather than modifying it.
This is an example of glue functions to attach various exsisting storage control module to the FatFs module with a defined API.

Copyright © 2013, ChaN, all right reserved.

FatFs module is a generic FAT file system module for small embedded systems. This is a free software that opened for education, research and commercial developments under license policy of following terms.

  • The FatFs module is a free software and there is NO WARRANTY.
  • No restriction on use. You can use, modify and redistribute it for personal, non-profit or commercial products UNDER YOUR RESPONSIBILITY.
  • Redistributions of source code must retain the above copyright notice.

Definition in file diskio.c.