diff options
| author | danicampora | 2015-02-22 17:31:26 +0100 |
|---|---|---|
| committer | danicampora | 2015-02-22 17:50:50 +0100 |
| commit | 33ddb566a7565b4fba4a68939d43bcdb5f132836 (patch) | |
| tree | bd348fd647ca26de8e05b18e411bcf7323a09a8c /cc3200/simplelink | |
| parent | 5c047b97f2e41b51f8314f6ee06788b1d9246dbf (diff) | |
cc3200: Remove dependencies from FreeRTOS.
Use the simplelink wrappers instead. This is one step further
towards having a single module for the cc3200 and the cc3100.
Diffstat (limited to 'cc3200/simplelink')
| -rw-r--r-- | cc3200/simplelink/cc_pal.c | 5 | ||||
| -rw-r--r-- | cc3200/simplelink/oslib/osi_freertos.c | 7 | ||||
| -rw-r--r-- | cc3200/simplelink/user.h | 1 |
3 files changed, 2 insertions, 11 deletions
diff --git a/cc3200/simplelink/cc_pal.c b/cc3200/simplelink/cc_pal.c index 5043d50a0..be9010440 100644 --- a/cc3200/simplelink/cc_pal.c +++ b/cc3200/simplelink/cc_pal.c @@ -57,11 +57,6 @@ #include <interrupt.h> #include <utils.h> -//OSLib includes -#if defined(SL_PLATFORM_MULTI_THREADED) -#include <osi.h> -#endif - #define REG_INT_MASK_SET 0x400F7088 #define REG_INT_MASK_CLR 0x400F708C diff --git a/cc3200/simplelink/oslib/osi_freertos.c b/cc3200/simplelink/oslib/osi_freertos.c index e8b617f84..8684d8f5d 100644 --- a/cc3200/simplelink/oslib/osi_freertos.c +++ b/cc3200/simplelink/oslib/osi_freertos.c @@ -176,12 +176,7 @@ OsiReturnVal_e osi_SyncObjSignal(OsiSyncObj_t* pSyncObj) return OSI_INVALID_PARAMS; } - if(pdTRUE != xSemaphoreGive( *pSyncObj )) - { - //In case of Semaphore, you are expected to get this if multiple sem - // give is called before sem take - return OSI_OK; - } + xSemaphoreGive( *pSyncObj ); return OSI_OK; } diff --git a/cc3200/simplelink/user.h b/cc3200/simplelink/user.h index 82cc420ce..3f6a691c4 100644 --- a/cc3200/simplelink/user.h +++ b/cc3200/simplelink/user.h @@ -66,6 +66,7 @@ extern "C" { #include <string.h> #include "cc_pal.h" +#include "debug.h" /*! \def MAX_CONCURRENT_ACTIONS |
