summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/fatfs/src
diff options
context:
space:
mode:
authordanicampora <danicampora@gmail.com>2015-02-26 10:54:55 +0100
committerdanicampora <danicampora@gmail.com>2015-02-26 11:18:18 +0100
commit5330d8996f3e64447b48ffe2824f7911337b0d07 (patch)
tree8d0e947460f2b80f6a6ee6ad1f720accd81c172a /cc3200/fatfs/src
parentf3661d4100299a136bc33cfccc7b2cade0d7da21 (diff)
downloadmicropython-5330d8996f3e64447b48ffe2824f7911337b0d07.tar.gz
micropython-5330d8996f3e64447b48ffe2824f7911337b0d07.zip
cc3200: Modify simplelink FreeRTOS OSI layer to only use semaphores.
Before, both mutexes and semaphores were used. Using only the latter and with a bit of cleanup to remove some code bloat, we save ~600 bytes of code.
Diffstat (limited to 'cc3200/fatfs/src')
-rw-r--r--cc3200/fatfs/src/option/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/fatfs/src/option/syscall.c b/cc3200/fatfs/src/option/syscall.c
index 622022b82d..1bb1ec3798 100644
--- a/cc3200/fatfs/src/option/syscall.c
+++ b/cc3200/fatfs/src/option/syscall.c
@@ -34,7 +34,7 @@ int ff_cre_syncobj ( /* !=0:Function succeeded, ==0:Could not create due to any
// *sobj = OSMutexCreate(0, &err); /* uC/OS-II */
// ret = (int)(err == OS_NO_ERR);
- *sobj = xSemaphoreCreateMutex(); /* FreeRTOS */
+ vSemaphoreCreateBinary( (*sobj) ); /* FreeRTOS */
ret = (int)(*sobj != NULL);
return ret;