diff options
author | danicampora <danicampora@gmail.com> | 2015-02-26 10:54:55 +0100 |
---|---|---|
committer | danicampora <danicampora@gmail.com> | 2015-02-26 11:18:18 +0100 |
commit | 5330d8996f3e64447b48ffe2824f7911337b0d07 (patch) | |
tree | 8d0e947460f2b80f6a6ee6ad1f720accd81c172a /cc3200/fatfs/src | |
parent | f3661d4100299a136bc33cfccc7b2cade0d7da21 (diff) | |
download | micropython-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.c | 2 |
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; |