From 38e7c0e46d3851a908c6fc98fc898b413aeb62c8 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 13 Jun 2015 13:06:31 +0000 Subject: FatFS timeout fix. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8030 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../ffconf.h | 4 ++-- ext/fatfs-0.10b-patched.7z | Bin 435792 -> 432540 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/ffconf.h b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/ffconf.h index fe632d171..0d6a1f8df 100644 --- a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/ffconf.h +++ b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/ffconf.h @@ -191,8 +191,8 @@ / with file lock control. This feature uses bss _FS_LOCK * 12 bytes. */ -#define _FS_REENTRANT 0 /* 0:Disable or 1:Enable */ -#define _FS_TIMEOUT 1000 /* Timeout period in unit of time tick */ +#define _FS_REENTRANT 0 /* 0:Disable or 1:Enable */ +#define _FS_TIMEOUT MS2ST(1000) /* Timeout period in unit of time tick */ #define _SYNC_t semaphore_t* /* O/S dependent sync object type. e.g. HANDLE, OS_EVENT*, ID, SemaphoreHandle_t and etc.. */ /* The _FS_REENTRANT option switches the re-entrancy (thread safe) of the FatFs module. / diff --git a/ext/fatfs-0.10b-patched.7z b/ext/fatfs-0.10b-patched.7z index eb97c969a..bd9a7747a 100644 Binary files a/ext/fatfs-0.10b-patched.7z and b/ext/fatfs-0.10b-patched.7z differ -- cgit v1.2.3