Update revision to use TI's mqtt and Freertos.

Dependencies:   mbed client server

Fork of cc3100_Test_mqtt_CM3 by David Fletcher

Committer:
dflet
Date:
Thu Sep 03 14:02:37 2015 +0000
Revision:
3:a8c249046181
SPI Mode change 1 to 0

Who changed what in which revision?

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