Updated to use external spawn.

Fork of simplelink_V2 by David Fletcher

Committer:
dflet
Date:
Sat Jun 06 13:48:29 2015 +0000
Revision:
1:9b68e650b3f6
Parent:
0:1a07906111ec
Oppps

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dflet 0:1a07906111ec 1 /*
dflet 0:1a07906111ec 2 * nonos.h - CC31xx/CC32xx Host Driver Implementation
dflet 0:1a07906111ec 3 *
dflet 0:1a07906111ec 4 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
dflet 0:1a07906111ec 5 *
dflet 0:1a07906111ec 6 *
dflet 0:1a07906111ec 7 * Redistribution and use in source and binary forms, with or without
dflet 0:1a07906111ec 8 * modification, are permitted provided that the following conditions
dflet 0:1a07906111ec 9 * are met:
dflet 0:1a07906111ec 10 *
dflet 0:1a07906111ec 11 * Redistributions of source code must retain the above copyright
dflet 0:1a07906111ec 12 * notice, this list of conditions and the following disclaimer.
dflet 0:1a07906111ec 13 *
dflet 0:1a07906111ec 14 * Redistributions in binary form must reproduce the above copyright
dflet 0:1a07906111ec 15 * notice, this list of conditions and the following disclaimer in the
dflet 0:1a07906111ec 16 * documentation and/or other materials provided with the
dflet 0:1a07906111ec 17 * distribution.
dflet 0:1a07906111ec 18 *
dflet 0:1a07906111ec 19 * Neither the name of Texas Instruments Incorporated nor the names of
dflet 0:1a07906111ec 20 * its contributors may be used to endorse or promote products derived
dflet 0:1a07906111ec 21 * from this software without specific prior written permission.
dflet 0:1a07906111ec 22 *
dflet 0:1a07906111ec 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
dflet 0:1a07906111ec 24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
dflet 0:1a07906111ec 25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
dflet 0:1a07906111ec 26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
dflet 0:1a07906111ec 27 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
dflet 0:1a07906111ec 28 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
dflet 0:1a07906111ec 29 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
dflet 0:1a07906111ec 30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
dflet 0:1a07906111ec 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
dflet 0:1a07906111ec 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
dflet 0:1a07906111ec 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dflet 0:1a07906111ec 34 *
dflet 0:1a07906111ec 35 */
dflet 0:1a07906111ec 36
dflet 0:1a07906111ec 37 #ifndef NONOS_H_
dflet 0:1a07906111ec 38 #define NONOS_H_
dflet 0:1a07906111ec 39
dflet 0:1a07906111ec 40 #include "cc3100_simplelink.h"
dflet 0:1a07906111ec 41
dflet 0:1a07906111ec 42 /*****************************************************************************/
dflet 0:1a07906111ec 43 /* Macro declarations */
dflet 0:1a07906111ec 44 /*****************************************************************************/
dflet 0:1a07906111ec 45
dflet 0:1a07906111ec 46 #ifndef SL_PLATFORM_MULTI_THREADED
dflet 0:1a07906111ec 47
dflet 0:1a07906111ec 48 namespace mbed_cc3100 {
dflet 0:1a07906111ec 49
dflet 0:1a07906111ec 50 /* This function call the user defined function, if defined, from the sync wait loop */
dflet 0:1a07906111ec 51 /* The use case of this function is to allow nonos system to call a user function to put the device into sleep */
dflet 0:1a07906111ec 52 /* The wake up should be activated after getting an interrupt from the device to Host */
dflet 0:1a07906111ec 53 /* The user function must return without blocking to prevent a delay on the event handling */
dflet 0:1a07906111ec 54 /*
dflet 0:1a07906111ec 55 #define _SlSyncWaitLoopCallback UserSleepFunction
dflet 0:1a07906111ec 56 */
dflet 0:1a07906111ec 57
dflet 0:1a07906111ec 58 const uint8_t NONOS_WAIT_FOREVER = 0xFF;
dflet 0:1a07906111ec 59 const uint8_t NONOS_NO_WAIT = 0x00;
dflet 0:1a07906111ec 60
dflet 0:1a07906111ec 61 const uint8_t NONOS_RET_OK = (0);
dflet 0:1a07906111ec 62 const int8_t NONOS_RET_ERR = (0xFF);
dflet 0:1a07906111ec 63 const uint8_t OSI_OK = NONOS_RET_OK;
dflet 0:1a07906111ec 64
dflet 0:1a07906111ec 65 const uint8_t NON_OS_SYNC_OBJ_CLEAR_VALUE = 0x11;
dflet 0:1a07906111ec 66 const uint8_t NON_OS_SYNC_OBJ_SIGNAL_VALUE = 0x22;
dflet 0:1a07906111ec 67 const uint8_t NON_OS_LOCK_OBJ_UNLOCK_VALUE = 0x33;
dflet 0:1a07906111ec 68 const uint8_t NON_OS_LOCK_OBJ_LOCK_VALUE = 0x44;
dflet 0:1a07906111ec 69
dflet 0:1a07906111ec 70 #define _SlTime_t _SlNonOsTime_t
dflet 0:1a07906111ec 71
dflet 0:1a07906111ec 72 #define _SlSyncObj_t _SlNonOsSemObj_t
dflet 0:1a07906111ec 73
dflet 0:1a07906111ec 74 #define _SlLockObj_t _SlNonOsSemObj_t
dflet 0:1a07906111ec 75
dflet 0:1a07906111ec 76 const uint8_t SL_OS_WAIT_FOREVER = NONOS_WAIT_FOREVER;
dflet 0:1a07906111ec 77
dflet 0:1a07906111ec 78 const uint8_t SL_OS_RET_CODE_OK = NONOS_RET_OK;
dflet 0:1a07906111ec 79
dflet 0:1a07906111ec 80 const uint8_t SL_OS_NO_WAIT = NONOS_NO_WAIT;
dflet 0:1a07906111ec 81
dflet 0:1a07906111ec 82
dflet 0:1a07906111ec 83 /*****************************************************************************/
dflet 0:1a07906111ec 84 /* Function prototypes */
dflet 0:1a07906111ec 85 /*****************************************************************************/
dflet 0:1a07906111ec 86
dflet 0:1a07906111ec 87 /*!
dflet 0:1a07906111ec 88 \brief This function creates a sync object
dflet 0:1a07906111ec 89
dflet 0:1a07906111ec 90 The sync object is used for synchronization between different thread or ISR and
dflet 0:1a07906111ec 91 a thread.
dflet 0:1a07906111ec 92
dflet 0:1a07906111ec 93 \param pSyncObj - pointer to the sync object control block
dflet 0:1a07906111ec 94
dflet 0:1a07906111ec 95 \return upon successful creation the function return 0
dflet 0:1a07906111ec 96 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 97 \note
dflet 0:1a07906111ec 98 \warning
dflet 0:1a07906111ec 99 */
dflet 0:1a07906111ec 100 #define _SlNonOsSyncObjCreate(pSyncObj) _SlNonOsSemSet(pSyncObj,NON_OS_SYNC_OBJ_CLEAR_VALUE)
dflet 0:1a07906111ec 101
dflet 0:1a07906111ec 102 /*!
dflet 0:1a07906111ec 103 \brief This function deletes a sync object
dflet 0:1a07906111ec 104
dflet 0:1a07906111ec 105 \param pSyncObj - pointer to the sync object control block
dflet 0:1a07906111ec 106
dflet 0:1a07906111ec 107 \return upon successful deletion the function should return 0
dflet 0:1a07906111ec 108 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 109 \note
dflet 0:1a07906111ec 110 \warning
dflet 0:1a07906111ec 111 */
dflet 0:1a07906111ec 112 //#define _SlNonOsSyncObjDelete(pSyncObj) _SlNonOsSemSet(pSyncObj,0)
dflet 0:1a07906111ec 113
dflet 0:1a07906111ec 114 /*!
dflet 0:1a07906111ec 115 \brief This function generates a sync signal for the object.
dflet 0:1a07906111ec 116
dflet 0:1a07906111ec 117 All suspended threads waiting on this sync object are resumed
dflet 0:1a07906111ec 118
dflet 0:1a07906111ec 119 \param pSyncObj - pointer to the sync object control block
dflet 0:1a07906111ec 120
dflet 0:1a07906111ec 121 \return upon successful signaling the function should return 0
dflet 0:1a07906111ec 122 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 123 \note the function could be called from ISR context
dflet 0:1a07906111ec 124 \warning
dflet 0:1a07906111ec 125 */
dflet 0:1a07906111ec 126 //#define _SlNonOsSyncObjSignal(pSyncObj) _SlNonOsSemSet(pSyncObj,NON_OS_SYNC_OBJ_SIGNAL_VALUE)
dflet 0:1a07906111ec 127
dflet 0:1a07906111ec 128 /*!
dflet 0:1a07906111ec 129 \brief This function waits for a sync signal of the specific sync object
dflet 0:1a07906111ec 130
dflet 0:1a07906111ec 131 \param pSyncObj - pointer to the sync object control block
dflet 0:1a07906111ec 132 \param Timeout - numeric value specifies the maximum number of mSec to
dflet 0:1a07906111ec 133 stay suspended while waiting for the sync signal
dflet 0:1a07906111ec 134 Currently, the simple link driver uses only two values:
dflet 0:1a07906111ec 135 - NONOS_WAIT_FOREVER
dflet 0:1a07906111ec 136 - NONOS_NO_WAIT
dflet 0:1a07906111ec 137
dflet 0:1a07906111ec 138 \return upon successful reception of the signal within the timeout window return 0
dflet 0:1a07906111ec 139 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 140 \note
dflet 0:1a07906111ec 141 \warning
dflet 0:1a07906111ec 142 */
dflet 0:1a07906111ec 143 //#define _SlNonOsSyncObjWait(pSyncObj , Timeout) _SlNonOsSemGet(pSyncObj,NON_OS_SYNC_OBJ_SIGNAL_VALUE,NON_OS_SYNC_OBJ_CLEAR_VALUE,Timeout)
dflet 0:1a07906111ec 144
dflet 0:1a07906111ec 145 /*!
dflet 0:1a07906111ec 146 \brief This function clears a sync object
dflet 0:1a07906111ec 147
dflet 0:1a07906111ec 148 \param pSyncObj - pointer to the sync object control block
dflet 0:1a07906111ec 149
dflet 0:1a07906111ec 150 \return upon successful clearing the function should return 0
dflet 0:1a07906111ec 151 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 152 \note
dflet 0:1a07906111ec 153 \warning
dflet 0:1a07906111ec 154 */
dflet 0:1a07906111ec 155 //#define _SlNonOsSyncObjClear(pSyncObj) _SlNonOsSemSet(pSyncObj,NON_OS_SYNC_OBJ_CLEAR_VALUE)
dflet 0:1a07906111ec 156
dflet 0:1a07906111ec 157 /*!
dflet 0:1a07906111ec 158 \brief This function creates a locking object.
dflet 0:1a07906111ec 159
dflet 0:1a07906111ec 160 The locking object is used for protecting a shared resources between different
dflet 0:1a07906111ec 161 threads.
dflet 0:1a07906111ec 162
dflet 0:1a07906111ec 163 \param pLockObj - pointer to the locking object control block
dflet 0:1a07906111ec 164
dflet 0:1a07906111ec 165 \return upon successful creation the function should return 0
dflet 0:1a07906111ec 166 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 167 \note
dflet 0:1a07906111ec 168 \warning
dflet 0:1a07906111ec 169 */
dflet 0:1a07906111ec 170 #define _SlNonOsLockObjCreate(pLockObj) _SlNonOsSemSet(pLockObj,NON_OS_LOCK_OBJ_UNLOCK_VALUE)
dflet 0:1a07906111ec 171
dflet 0:1a07906111ec 172 /*!
dflet 0:1a07906111ec 173 \brief This function deletes a locking object.
dflet 0:1a07906111ec 174
dflet 0:1a07906111ec 175 \param pLockObj - pointer to the locking object control block
dflet 0:1a07906111ec 176
dflet 0:1a07906111ec 177 \return upon successful deletion the function should return 0
dflet 0:1a07906111ec 178 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 179 \note
dflet 0:1a07906111ec 180 \warning
dflet 0:1a07906111ec 181 */
dflet 0:1a07906111ec 182 //#define _SlNonOsLockObjDelete(pLockObj) _SlNonOsSemSet(pLockObj,0)
dflet 0:1a07906111ec 183
dflet 0:1a07906111ec 184 /*!
dflet 0:1a07906111ec 185 \brief This function locks a locking object.
dflet 0:1a07906111ec 186
dflet 0:1a07906111ec 187 All other threads that call this function before this thread calls
dflet 0:1a07906111ec 188 the _SlNonOsLockObjUnlock would be suspended
dflet 0:1a07906111ec 189
dflet 0:1a07906111ec 190 \param pLockObj - pointer to the locking object control block
dflet 0:1a07906111ec 191 \param Timeout - numeric value specifies the maximum number of mSec to
dflet 0:1a07906111ec 192 stay suspended while waiting for the locking object
dflet 0:1a07906111ec 193 Currently, the simple link driver uses only two values:
dflet 0:1a07906111ec 194 - NONOS_WAIT_FOREVER
dflet 0:1a07906111ec 195 - NONOS_NO_WAIT
dflet 0:1a07906111ec 196
dflet 0:1a07906111ec 197
dflet 0:1a07906111ec 198 \return upon successful reception of the locking object the function should return 0
dflet 0:1a07906111ec 199 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 200 \note
dflet 0:1a07906111ec 201 \warning
dflet 0:1a07906111ec 202 */
dflet 0:1a07906111ec 203 //#define _SlNonOsLockObjLock(pLockObj , Timeout) _SlNonOsSemGet(pLockObj,NON_OS_LOCK_OBJ_UNLOCK_VALUE,NON_OS_LOCK_OBJ_LOCK_VALUE,Timeout)
dflet 0:1a07906111ec 204
dflet 0:1a07906111ec 205 /*!
dflet 0:1a07906111ec 206 \brief This function unlock a locking object.
dflet 0:1a07906111ec 207
dflet 0:1a07906111ec 208 \param pLockObj - pointer to the locking object control block
dflet 0:1a07906111ec 209
dflet 0:1a07906111ec 210 \return upon successful unlocking the function should return 0
dflet 0:1a07906111ec 211 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 212 \note
dflet 0:1a07906111ec 213 \warning
dflet 0:1a07906111ec 214 */
dflet 0:1a07906111ec 215 //#define _SlNonOsLockObjUnlock(pLockObj) _SlNonOsSemSet(pLockObj,NON_OS_LOCK_OBJ_UNLOCK_VALUE)
dflet 0:1a07906111ec 216
dflet 0:1a07906111ec 217 /*****************************************************************************
dflet 0:1a07906111ec 218
dflet 0:1a07906111ec 219 Overwrite SimpleLink driver OS adaptation functions
dflet 0:1a07906111ec 220
dflet 0:1a07906111ec 221
dflet 0:1a07906111ec 222 *****************************************************************************/
dflet 0:1a07906111ec 223
dflet 0:1a07906111ec 224 #undef sl_SyncObjCreate
dflet 0:1a07906111ec 225 #define sl_SyncObjCreate(pSyncObj,pName) _SlNonOsSemSet(pSyncObj,NON_OS_SYNC_OBJ_CLEAR_VALUE)
dflet 0:1a07906111ec 226
dflet 0:1a07906111ec 227 #undef sl_LockObjCreate
dflet 0:1a07906111ec 228 #define sl_LockObjCreate(pLockObj,pName) _SlNonOsSemSet(pLockObj,NON_OS_LOCK_OBJ_UNLOCK_VALUE)
dflet 0:1a07906111ec 229
dflet 0:1a07906111ec 230 /*!
dflet 0:1a07906111ec 231 \brief type definition for the return values of this adaptation layer
dflet 0:1a07906111ec 232 */
dflet 0:1a07906111ec 233 typedef int8_t _SlNonOsRetVal_t;
dflet 0:1a07906111ec 234
dflet 0:1a07906111ec 235 /*!
dflet 0:1a07906111ec 236 \brief type definition for a time value
dflet 0:1a07906111ec 237 */
dflet 0:1a07906111ec 238 typedef uint8_t _SlNonOsTime_t;
dflet 0:1a07906111ec 239
dflet 0:1a07906111ec 240 /*!
dflet 0:1a07906111ec 241 \brief type definition for a sync object container
dflet 0:1a07906111ec 242
dflet 0:1a07906111ec 243 Sync object is object used to synchronize between two threads or thread and interrupt handler.
dflet 0:1a07906111ec 244 One thread is waiting on the object and the other thread send a signal, which then
dflet 0:1a07906111ec 245 release the waiting thread.
dflet 0:1a07906111ec 246 The signal must be able to be sent from interrupt context.
dflet 0:1a07906111ec 247 This object is generally implemented by binary semaphore or events.
dflet 0:1a07906111ec 248 */
dflet 0:1a07906111ec 249 typedef uint8_t _SlNonOsSemObj_t;
dflet 0:1a07906111ec 250
dflet 0:1a07906111ec 251 class cc3100_driver;
dflet 0:1a07906111ec 252
dflet 0:1a07906111ec 253 class cc3100_nonos
dflet 0:1a07906111ec 254 {
dflet 0:1a07906111ec 255
dflet 0:1a07906111ec 256 public:
dflet 0:1a07906111ec 257
dflet 0:1a07906111ec 258 cc3100_nonos(cc3100_driver &driver);
dflet 0:1a07906111ec 259
dflet 0:1a07906111ec 260 ~cc3100_nonos();
dflet 0:1a07906111ec 261
dflet 0:1a07906111ec 262 /*!
dflet 0:1a07906111ec 263 \brief This function call the pEntry callback from a different context
dflet 0:1a07906111ec 264
dflet 0:1a07906111ec 265 \param pEntry - pointer to the entry callback function
dflet 0:1a07906111ec 266
dflet 0:1a07906111ec 267 \param pValue - pointer to any type of memory structure that would be
dflet 0:1a07906111ec 268 passed to pEntry callback from the execution thread.
dflet 0:1a07906111ec 269
dflet 0:1a07906111ec 270 \param flags - execution flags - reserved for future usage
dflet 0:1a07906111ec 271
dflet 0:1a07906111ec 272 \return upon successful registration of the spawn the function return 0
dflet 0:1a07906111ec 273 (the function is not blocked till the end of the execution of the function
dflet 0:1a07906111ec 274 and could be returned before the execution is actually completed)
dflet 0:1a07906111ec 275 Otherwise, a negative value indicating the error code shall be returned
dflet 0:1a07906111ec 276 \note
dflet 0:1a07906111ec 277 \warning
dflet 0:1a07906111ec 278 */
dflet 0:1a07906111ec 279 _SlNonOsRetVal_t _SlNonOsSpawn(_SlSpawnEntryFunc_t pEntry , void* pValue , uint32_t flags);
dflet 0:1a07906111ec 280
dflet 0:1a07906111ec 281
dflet 0:1a07906111ec 282 /*!
dflet 0:1a07906111ec 283 \brief This function must be called from the main loop in non-os paltforms
dflet 0:1a07906111ec 284
dflet 0:1a07906111ec 285 \param None
dflet 0:1a07906111ec 286
dflet 0:1a07906111ec 287 \return 0 - No more activities
dflet 0:1a07906111ec 288 1 - Activity still in progress
dflet 0:1a07906111ec 289 \note
dflet 0:1a07906111ec 290 \warning
dflet 0:1a07906111ec 291 */
dflet 0:1a07906111ec 292 _SlNonOsRetVal_t _SlNonOsMainLoopTask(void);
dflet 0:1a07906111ec 293
dflet 0:1a07906111ec 294 _SlNonOsRetVal_t _SlNonOsSemGet(_SlNonOsSemObj_t* pSyncObj, _SlNonOsSemObj_t WaitValue, _SlNonOsSemObj_t SetValue, _SlNonOsTime_t Timeout);
dflet 0:1a07906111ec 295 _SlNonOsRetVal_t _SlNonOsSemSet(_SlNonOsSemObj_t* pSemObj , _SlNonOsSemObj_t Value);
dflet 0:1a07906111ec 296 // _SlNonOsRetVal_t _SlNonOsSpawn(_SlSpawnEntryFunc_t pEntry , void* pValue , uint32_t flags);
dflet 0:1a07906111ec 297 // _SlNonOsRetVal_t sl_SyncObjCreate(_SlNonOsSemObj_t* pSemObj, _SlNonOsSemObj_t NON_OS_SYNC_OBJ_CLEAR_VALUE);
dflet 0:1a07906111ec 298 _SlNonOsRetVal_t sl_SyncObjDelete(_SlNonOsSemObj_t* pSemObj, _SlNonOsSemObj_t );
dflet 0:1a07906111ec 299 _SlNonOsRetVal_t sl_SyncObjSignal(_SlNonOsSemObj_t* pSemObj, _SlNonOsSemObj_t NON_OS_SYNC_OBJ_SIGNAL_VALUE);
dflet 0:1a07906111ec 300 _SlNonOsRetVal_t sl_SyncObjSignalFromIRQ(_SlNonOsSemObj_t* pSemObj, _SlNonOsSemObj_t NON_OS_SYNC_OBJ_SIGNAL_VALUE);
dflet 0:1a07906111ec 301 // _SlNonOsRetVal_t sl_LockObjCreate(_SlNonOsSemObj_t* pSemObj, _SlNonOsSemObj_t NON_OS_LOCK_OBJ_UNLOCK_VALUE);
dflet 0:1a07906111ec 302 _SlNonOsRetVal_t sl_LockObjDelete(_SlNonOsSemObj_t* pSemObj, _SlNonOsSemObj_t );
dflet 0:1a07906111ec 303 _SlNonOsRetVal_t sl_LockObjUnlock(_SlNonOsSemObj_t* pSemObj, _SlNonOsSemObj_t NON_OS_LOCK_OBJ_UNLOCK_VALUE);
dflet 0:1a07906111ec 304 _SlNonOsRetVal_t sl_SyncObjWait(_SlNonOsSemObj_t* pSyncObj, _SlNonOsSemObj_t NON_OS_SYNC_OBJ_SIGNAL_VALUE, _SlNonOsSemObj_t NON_OS_SYNC_OBJ_CLEAR_VALUE, _SlNonOsTime_t Timeout);
dflet 0:1a07906111ec 305 _SlNonOsRetVal_t sl_LockObjLock(_SlNonOsSemObj_t* pSyncObj, _SlNonOsSemObj_t NON_OS_LOCK_OBJ_UNLOCK_VALUE, _SlNonOsSemObj_t NON_OS_LOCK_OBJ_LOCK_VALUE, _SlNonOsTime_t Timeout);
dflet 0:1a07906111ec 306
dflet 0:1a07906111ec 307
dflet 0:1a07906111ec 308 #if (defined(_SlSyncWaitLoopCallback))
dflet 0:1a07906111ec 309 void _SlSyncWaitLoopCallback(void);
dflet 0:1a07906111ec 310 #endif
dflet 0:1a07906111ec 311
dflet 0:1a07906111ec 312 private:
dflet 0:1a07906111ec 313
dflet 0:1a07906111ec 314 cc3100_driver &_driver;
dflet 0:1a07906111ec 315
dflet 0:1a07906111ec 316 };//class
dflet 0:1a07906111ec 317
dflet 0:1a07906111ec 318 }//namespace mbed_cc3100
dflet 0:1a07906111ec 319
dflet 0:1a07906111ec 320 #endif /* !SL_PLATFORM_MULTI_THREADED */
dflet 0:1a07906111ec 321
dflet 0:1a07906111ec 322
dflet 0:1a07906111ec 323
dflet 0:1a07906111ec 324 #endif
dflet 0:1a07906111ec 325