esp-open-rtos/extras/fatfs
2017-03-15 21:08:44 +05:00
..
cc932.h FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
cc936.h FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
cc949.h FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
cc950.h FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
ccsbcs.h FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
component.mk FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
defaults.mk FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
diskio.c FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
diskio.h FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
ff.c FatFS update to R0.12c 2017-03-15 21:08:44 +05:00
ff.h FatFS update to R0.12c 2017-03-15 21:08:44 +05:00
ffconf.h FatFS update to R0.12c 2017-03-15 21:08:44 +05:00
integer.h FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
README.md FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
syscall.c FreeRTOS type updates. (#261) 2016-11-05 12:04:03 +02:00
unicode.c FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
volumes.c FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00
volumes.h FatFs integration (SDIO backend) (#242) 2016-10-24 22:30:51 +03:00

FatFs - Generic FAT File System Module

Current version: R0.12b

How to use

Connect your SD card to ESP module

SD pin ESP8266
  1. DAT2 | -
  2. /CS | Any accessible GPIO (15, 5, 4, 0, 2, 16)
  3. DI | HMOSI (GPIO13)
  4. VDD | +3V3
  5. CLK | HCLK (GPIO14)
  6. VSS | GND
  7. DO | HMISO (GPIO12)
  8. RSV | -

Add extras/sdio and extras/fatfs to EXTRA_COMPONENTS parameter of your makefile, e.g.

EXTRA_COMPONENTS = extras/sdio extras/fatfs

Use const char *f_gpio_to_volume(uint8_t gpio) to get the FatFs volume ID based on GPIO which is used for CS pin.

FatFs configuration

Almost all of the FatFs parameters are configurable in the Makefile of your project. See default values and their meaning in defaults.mk.

Original documentation

http://elm-chan.org/fsw/ff/00index_e.html

License

Copyright (C) 20xx, ChaN, all right reserved.

FatFs module is an open source software. Redistribution and use of FatFs in source and binary forms, with or without modification, are permitted provided that the following condition is met:

  1. Redistributions of source code must retain the above copyright notice, this condition and the following disclaimer.

This software is provided by the copyright holder and contributors "AS IS" and any warranties related to this software are DISCLAIMED. The copyright owner or contributors be NOT LIABLE for any damages caused by use of this software.