From 5330d8996f3e64447b48ffe2824f7911337b0d07 Mon Sep 17 00:00:00 2001 From: danicampora Date: Thu, 26 Feb 2015 10:54:55 +0100 Subject: 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. --- cc3200/fatfs/src/option/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cc3200/fatfs/src/option/syscall.c') diff --git a/cc3200/fatfs/src/option/syscall.c b/cc3200/fatfs/src/option/syscall.c index 622022b82..1bb1ec379 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; -- cgit v1.2.3