aboutsummaryrefslogtreecommitdiff
path: root/cc3200/fatfs/src/diskio.c
diff options
context:
space:
mode:
authorAlex March2015-11-06 23:48:49 +0000
committerDamien George2015-11-08 22:21:17 +0000
commitc27e5c4b0bcdae50bdeb29a9c9b8adb431c343b3 (patch)
tree628248b424b3c34980610c6709b6ea48955beaff /cc3200/fatfs/src/diskio.c
parent748509a93cec2ef0ad25e4c7a1e478e0703c496b (diff)
cc3200: FatFS configuration moved to the library folder.
Port specific settinigs defined in mpconfigport. FreeRTOS and semphr headers added to define SemaphoreHandle_t for the SYNC_T.
Diffstat (limited to 'cc3200/fatfs/src/diskio.c')
-rw-r--r--cc3200/fatfs/src/diskio.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/cc3200/fatfs/src/diskio.c b/cc3200/fatfs/src/diskio.c
index f8a84a30c..74bc6a0d5 100644
--- a/cc3200/fatfs/src/diskio.c
+++ b/cc3200/fatfs/src/diskio.c
@@ -12,7 +12,8 @@
#include "py/mpconfig.h"
#include "py/runtime.h"
#include "py/obj.h"
-#include "diskio.h" /* FatFs lower layer API */
+#include "lib/fatfs/ff.h"
+#include "lib/fatfs/diskio.h" /* FatFs lower layer API */
#include "sflash_diskio.h" /* Serial flash disk IO API */
#include "sd_diskio.h" /* SDCARD disk IO API */
#include "inc/hw_types.h"
@@ -22,7 +23,6 @@
#include "prcm.h"
#include "pybrtc.h"
#include "timeutils.h"
-#include "ff.h"
#include "pybsd.h"
#include "moduos.h"
@@ -35,7 +35,7 @@ DSTATUS disk_status (
BYTE pdrv /* Physical drive nmuber to identify the drive */
)
{
- if (pdrv == FLASH) {
+ if (pdrv == PD_FLASH) {
return sflash_disk_status();
} else {
os_fs_mount_t *mount_obj;
@@ -57,7 +57,7 @@ DSTATUS disk_initialize (
BYTE pdrv /* Physical drive nmuber to identify the drive */
)
{
- if (pdrv == FLASH) {
+ if (pdrv == PD_FLASH) {
if (RES_OK != sflash_disk_init()) {
return STA_NOINIT;
}
@@ -84,7 +84,7 @@ DRESULT disk_read (
UINT count /* Number of sectors to read */
)
{
- if (pdrv == FLASH) {
+ if (pdrv == PD_FLASH) {
return sflash_disk_read(buff, sector, count);
} else {
os_fs_mount_t *mount_obj;
@@ -115,7 +115,7 @@ DRESULT disk_write (
UINT count /* Number of sectors to write */
)
{
- if (pdrv == FLASH) {
+ if (pdrv == PD_FLASH) {
return sflash_disk_write(buff, sector, count);
} else {
os_fs_mount_t *mount_obj;
@@ -147,7 +147,7 @@ DRESULT disk_ioctl (
void *buff /* Buffer to send/receive control data */
)
{
- if (pdrv == FLASH) {
+ if (pdrv == PD_FLASH) {
switch (cmd) {
case CTRL_SYNC:
return sflash_disk_flush();