cc3100_Socket_Wifi_Server with Ethernet Interface not working

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of cc3100_Test_Demo by David Fletcher

Committer:
dflet
Date:
Thu Mar 19 15:39:08 2015 +0000
Revision:
6:778b081f6a13
Updated to CC3100SDK1.1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dflet 6:778b081f6a13 1 /*
dflet 6:778b081f6a13 2 * simplelink.h - CC31xx/CC32xx Host Driver Implementation
dflet 6:778b081f6a13 3 *
dflet 6:778b081f6a13 4 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
dflet 6:778b081f6a13 5 *
dflet 6:778b081f6a13 6 *
dflet 6:778b081f6a13 7 * Redistribution and use in source and binary forms, with or without
dflet 6:778b081f6a13 8 * modification, are permitted provided that the following conditions
dflet 6:778b081f6a13 9 * are met:
dflet 6:778b081f6a13 10 *
dflet 6:778b081f6a13 11 * Redistributions of source code must retain the above copyright
dflet 6:778b081f6a13 12 * notice, this list of conditions and the following disclaimer.
dflet 6:778b081f6a13 13 *
dflet 6:778b081f6a13 14 * Redistributions in binary form must reproduce the above copyright
dflet 6:778b081f6a13 15 * notice, this list of conditions and the following disclaimer in the
dflet 6:778b081f6a13 16 * documentation and/or other materials provided with the
dflet 6:778b081f6a13 17 * distribution.
dflet 6:778b081f6a13 18 *
dflet 6:778b081f6a13 19 * Neither the name of Texas Instruments Incorporated nor the names of
dflet 6:778b081f6a13 20 * its contributors may be used to endorse or promote products derived
dflet 6:778b081f6a13 21 * from this software without specific prior written permission.
dflet 6:778b081f6a13 22 *
dflet 6:778b081f6a13 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
dflet 6:778b081f6a13 24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
dflet 6:778b081f6a13 25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
dflet 6:778b081f6a13 26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
dflet 6:778b081f6a13 27 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
dflet 6:778b081f6a13 28 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
dflet 6:778b081f6a13 29 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
dflet 6:778b081f6a13 30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
dflet 6:778b081f6a13 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
dflet 6:778b081f6a13 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
dflet 6:778b081f6a13 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dflet 6:778b081f6a13 34 *
dflet 6:778b081f6a13 35 */
dflet 6:778b081f6a13 36
dflet 6:778b081f6a13 37
dflet 6:778b081f6a13 38 /*!
dflet 6:778b081f6a13 39 \mainpage SimpleLink Driver
dflet 6:778b081f6a13 40
dflet 6:778b081f6a13 41 \section intro_sec Introduction
dflet 6:778b081f6a13 42
dflet 6:778b081f6a13 43 The SimpleLink CC31xx/CC2xx family allows to add Wi-Fi and networking capabilities
dflet 6:778b081f6a13 44 to low-cost embedded products without having prior Wi-Fi, RF or networking expertise.
dflet 6:778b081f6a13 45 The CC31xx/CC32xx is an ideal solution for microcontroller-based sensor and control
dflet 6:778b081f6a13 46 applications such as home appliances, home automation and smart metering.
dflet 6:778b081f6a13 47 The CC31xx/CC32xx has integrated a comprehensive TCP/IP network stack, Wi-Fi driver and
dflet 6:778b081f6a13 48 security supplicant leading to easier portability to microcontrollers, to an
dflet 6:778b081f6a13 49 ultra-low memory footprint, all without compromising the capabilities and robustness
dflet 6:778b081f6a13 50 of the final application.
dflet 6:778b081f6a13 51
dflet 6:778b081f6a13 52
dflet 6:778b081f6a13 53
dflet 6:778b081f6a13 54 \section modules_sec Module Names
dflet 6:778b081f6a13 55 To make it simple, TI's SimpleLink CC31xx/CC32xx platform capabilities were divided into modules by topic (Silo).
dflet 6:778b081f6a13 56 These capabilities range from basic device management through wireless
dflet 6:778b081f6a13 57 network configuration, standard BSD socket and much more.
dflet 6:778b081f6a13 58 Listed below are the various modules in the SimpleLink CC31xx/CC32xx driver:
dflet 6:778b081f6a13 59 -# \ref device - controls the behaviour of the CC31xx/CC32xx device (start/stop, events masking and obtaining specific device status)
dflet 6:778b081f6a13 60 -# \ref wlan - controls the use of the WiFi WLAN module including:
dflet 6:778b081f6a13 61 - Connection features, such as: profiles, policies, SmartConfig™
dflet 6:778b081f6a13 62 - Advanced WLAN features, such as: scans, rx filters and rx statistics collection
dflet 6:778b081f6a13 63 -# \ref socket - controls standard client/server sockets programming options and capabilities
dflet 6:778b081f6a13 64 -# \ref netapp - activates networking applications, such as: HTTP Server, DHCP Server, Ping, DNS and mDNS.
dflet 6:778b081f6a13 65 -# \ref netcfg - controls the configuration of the device addresses (i.e. IP and MAC addresses)
dflet 6:778b081f6a13 66 -# \ref FileSystem - provides file system capabilities to TI's CC31XX that can be used by both the CC31XX device and the user.
dflet 6:778b081f6a13 67
dflet 6:778b081f6a13 68
dflet 6:778b081f6a13 69 \section proting_sec Porting Guide
dflet 6:778b081f6a13 70
dflet 6:778b081f6a13 71 The porting of the SimpleLink driver to any new platform is based on few simple steps.
dflet 6:778b081f6a13 72 This guide takes you through this process step by step. Please follow the instructions
dflet 6:778b081f6a13 73 carefully to avoid any problems during this process and to enable efficient and proper
dflet 6:778b081f6a13 74 work with the device.
dflet 6:778b081f6a13 75 Please notice that all modifications and porting adjustments of the driver should be
dflet 6:778b081f6a13 76 made in the user.h header file only.
dflet 6:778b081f6a13 77 Keep making any of the changes only in this file will ensure smoothly transaction to
dflet 6:778b081f6a13 78 new versions of the driver at the future!
dflet 6:778b081f6a13 79
dflet 6:778b081f6a13 80
dflet 6:778b081f6a13 81 \subsection porting_step1 Step 1 - Create your own user.h file
dflet 6:778b081f6a13 82
dflet 6:778b081f6a13 83 The first step is to create a user.h file that will include your configurations and
dflet 6:778b081f6a13 84 adjustments. You can use the empty template provided as part of this driver or
dflet 6:778b081f6a13 85 you can choose to base your file on file from one of the wide range of examples
dflet 6:778b081f6a13 86 applications provided by Texas Instruments
dflet 6:778b081f6a13 87
dflet 6:778b081f6a13 88
dflet 6:778b081f6a13 89 \subsection porting_step2 Step 2 - Select the capabilities set required for your application
dflet 6:778b081f6a13 90
dflet 6:778b081f6a13 91 Texas Instruments made a lot of efforts to build set of predefined capability sets that would
dflet 6:778b081f6a13 92 fit most of the target application.
dflet 6:778b081f6a13 93 It is recommended to try and choose one of this predefined capabilities set before going to
dflet 6:778b081f6a13 94 build your own customized set. If you find compatible set you can skip the rest of this step.
dflet 6:778b081f6a13 95
dflet 6:778b081f6a13 96 The available sets are:
dflet 6:778b081f6a13 97 -# SL_TINY - Compatible to be used on platforms with very limited resources. Provides
dflet 6:778b081f6a13 98 the best in class foot print in terms of Code and Data consumption.
dflet 6:778b081f6a13 99 -# SL_SMALL - Compatible to most common networking applications. Provide the most
dflet 6:778b081f6a13 100 common APIs with decent balance between code size, data size, functionality
dflet 6:778b081f6a13 101 and performances
dflet 6:778b081f6a13 102 -# SL_FULL - Provide access to all SimpleLink functionalities
dflet 6:778b081f6a13 103
dflet 6:778b081f6a13 104
dflet 6:778b081f6a13 105 \subsection porting_step3 Step 3 - Bind the device enable/disable output line
dflet 6:778b081f6a13 106
dflet 6:778b081f6a13 107 The enable/disable line (nHib) provide mechanism to enter the device into the least current
dflet 6:778b081f6a13 108 consumption mode. This mode could be used when no traffic is required (tx/rx).
dflet 6:778b081f6a13 109 when this line is not connected to any IO of the host this define should be left empty.
dflet 6:778b081f6a13 110 Not connecting this line results in ability to start the driver only once.
dflet 6:778b081f6a13 111
dflet 6:778b081f6a13 112
dflet 6:778b081f6a13 113 \subsection porting_step4 Step 4 - Writing your interface communication driver
dflet 6:778b081f6a13 114
dflet 6:778b081f6a13 115 The SimpleLink device support several standard communication protocol among SPI and
dflet 6:778b081f6a13 116 UART. Depending on your needs and your hardware design, you should choose the
dflet 6:778b081f6a13 117 communication channel type.
dflet 6:778b081f6a13 118 The interface for this communication channel should include 4 simple access functions:
dflet 6:778b081f6a13 119 -# open
dflet 6:778b081f6a13 120 -# close
dflet 6:778b081f6a13 121 -# read
dflet 6:778b081f6a13 122 -# write
dflet 6:778b081f6a13 123
dflet 6:778b081f6a13 124 The way this driver would be implemented is directly effecting the efficiency and
dflet 6:778b081f6a13 125 the performances of the SimpleLink device on this platform.
dflet 6:778b081f6a13 126 If your system has DMA you should consider to use it in order to increase the utilization
dflet 6:778b081f6a13 127 of the communication channel
dflet 6:778b081f6a13 128 If you have enough memory resources you should consider using a buffer to increase the
dflet 6:778b081f6a13 129 efficiency of the write operations.
dflet 6:778b081f6a13 130
dflet 6:778b081f6a13 131
dflet 6:778b081f6a13 132 \subsection porting_step5 Step 5 - Choose your memory management model
dflet 6:778b081f6a13 133
dflet 6:778b081f6a13 134 The SimpleLink driver support two memory models:
dflet 6:778b081f6a13 135 -# Static (default)
dflet 6:778b081f6a13 136 -# Dynamic
dflet 6:778b081f6a13 137
dflet 6:778b081f6a13 138 If you choose to work in dynamic model you will have to provide alloc and free functions
dflet 6:778b081f6a13 139 to be used by the Simple Link driver otherwise nothing need to be done.
dflet 6:778b081f6a13 140
dflet 6:778b081f6a13 141
dflet 6:778b081f6a13 142 \subsection porting_step6 Step 6 - OS adaptation
dflet 6:778b081f6a13 143
dflet 6:778b081f6a13 144 The SimpleLink driver could run on two kind of platforms:
dflet 6:778b081f6a13 145 -# Non-Os / Single Threaded (default)
dflet 6:778b081f6a13 146 -# Multi-Threaded
dflet 6:778b081f6a13 147
dflet 6:778b081f6a13 148 If you choose to work in multi-threaded environment under operating system you will have to
dflet 6:778b081f6a13 149 provide some basic adaptation routines to allow the driver to protect access to resources
dflet 6:778b081f6a13 150 for different threads (locking object) and to allow synchronization between threads (sync objects).
dflet 6:778b081f6a13 151 In additional the driver support running without dedicated thread allocated solely to the simple
dflet 6:778b081f6a13 152 link driver. If you choose to work in this mode, you should also supply a spawn method that
dflet 6:778b081f6a13 153 will enable to run function on a temporary context.
dflet 6:778b081f6a13 154
dflet 6:778b081f6a13 155
dflet 6:778b081f6a13 156 \subsection porting_step7 Step 7 - Set your asynchronous event handlers routines
dflet 6:778b081f6a13 157
dflet 6:778b081f6a13 158 The SimpleLink device generate asynchronous events in several situations.
dflet 6:778b081f6a13 159 These asynchronous events could be masked.
dflet 6:778b081f6a13 160 In order to catch these events you have to provide handler routines.
dflet 6:778b081f6a13 161 Please notice that if you not provide a handler routine and the event is received,
dflet 6:778b081f6a13 162 the driver will drop this event without any indication of this drop.
dflet 6:778b081f6a13 163
dflet 6:778b081f6a13 164
dflet 6:778b081f6a13 165 \subsection porting_step8 Step 8 - Run diagnostic tools to validate the correctness of your porting
dflet 6:778b081f6a13 166
dflet 6:778b081f6a13 167 The driver is delivered with some porting diagnostic tools to simplify the porting validation process
dflet 6:778b081f6a13 168 and to reduce issues latter. It is very important to follow carefully this process.
dflet 6:778b081f6a13 169
dflet 6:778b081f6a13 170 The diagnostic process include:
dflet 6:778b081f6a13 171 -# Validating Interface Communication Driver
dflet 6:778b081f6a13 172 -# Validating OS adaptation layer
dflet 6:778b081f6a13 173 -# Validating HW integrity
dflet 6:778b081f6a13 174 -# Validating basic work with the device
dflet 6:778b081f6a13 175
dflet 6:778b081f6a13 176
dflet 6:778b081f6a13 177 \section sw_license License
dflet 6:778b081f6a13 178
dflet 6:778b081f6a13 179 *
dflet 6:778b081f6a13 180 *
dflet 6:778b081f6a13 181 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
dflet 6:778b081f6a13 182 *
dflet 6:778b081f6a13 183 *
dflet 6:778b081f6a13 184 * Redistribution and use in source and binary forms, with or without
dflet 6:778b081f6a13 185 * modification, are permitted provided that the following conditions
dflet 6:778b081f6a13 186 * are met:
dflet 6:778b081f6a13 187 *
dflet 6:778b081f6a13 188 * Redistributions of source code must retain the above copyright
dflet 6:778b081f6a13 189 * notice, this list of conditions and the following disclaimer.
dflet 6:778b081f6a13 190 *
dflet 6:778b081f6a13 191 * Redistributions in binary form must reproduce the above copyright
dflet 6:778b081f6a13 192 * notice, this list of conditions and the following disclaimer in the
dflet 6:778b081f6a13 193 * documentation and/or other materials provided with the
dflet 6:778b081f6a13 194 * distribution.
dflet 6:778b081f6a13 195 *
dflet 6:778b081f6a13 196 * Neither the name of Texas Instruments Incorporated nor the names of
dflet 6:778b081f6a13 197 * its contributors may be used to endorse or promote products derived
dflet 6:778b081f6a13 198 * from this software without specific prior written permission.
dflet 6:778b081f6a13 199 *
dflet 6:778b081f6a13 200 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
dflet 6:778b081f6a13 201 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
dflet 6:778b081f6a13 202 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
dflet 6:778b081f6a13 203 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
dflet 6:778b081f6a13 204 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
dflet 6:778b081f6a13 205 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
dflet 6:778b081f6a13 206 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
dflet 6:778b081f6a13 207 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
dflet 6:778b081f6a13 208 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
dflet 6:778b081f6a13 209 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
dflet 6:778b081f6a13 210 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dflet 6:778b081f6a13 211 *
dflet 6:778b081f6a13 212 */
dflet 6:778b081f6a13 213
dflet 6:778b081f6a13 214
dflet 6:778b081f6a13 215
dflet 6:778b081f6a13 216 #ifndef SIMPLELINK_H_
dflet 6:778b081f6a13 217 #define SIMPLELINK_H_
dflet 6:778b081f6a13 218
dflet 6:778b081f6a13 219 #include "mbed.h"
dflet 6:778b081f6a13 220 #include "cc3100_user.h"
dflet 6:778b081f6a13 221
dflet 6:778b081f6a13 222 namespace mbed_cc3100 {
dflet 6:778b081f6a13 223
dflet 6:778b081f6a13 224 /*! \attention Async event activation notes
dflet 6:778b081f6a13 225 Function prototypes for event callback handlers
dflet 6:778b081f6a13 226 Event handler function names should be defined in the user.h file
dflet 6:778b081f6a13 227 e.g.
dflet 6:778b081f6a13 228 "#define sl_WlanEvtHdlr SLWlanEventHandler"
dflet 6:778b081f6a13 229 Indicates all WLAN events are handled by User func "SLWlanEventHandler"
dflet 6:778b081f6a13 230 Important notes:
dflet 6:778b081f6a13 231 1. Event handlers cannot activate another SimpleLink API from the event's context
dflet 6:778b081f6a13 232 2. Event's data is valid during event's context. Any application data
dflet 6:778b081f6a13 233 which is required for the user application should be copied or marked
dflet 6:778b081f6a13 234 into user's variables
dflet 6:778b081f6a13 235 3. It is not recommended to delay the execution of the event callback handler
dflet 6:778b081f6a13 236
dflet 6:778b081f6a13 237 */
dflet 6:778b081f6a13 238
dflet 6:778b081f6a13 239 /*!
dflet 6:778b081f6a13 240
dflet 6:778b081f6a13 241 \addtogroup UserEvents
dflet 6:778b081f6a13 242 @{
dflet 6:778b081f6a13 243
dflet 6:778b081f6a13 244 */
dflet 6:778b081f6a13 245
dflet 6:778b081f6a13 246
dflet 6:778b081f6a13 247 /*****************************************************************************/
dflet 6:778b081f6a13 248 /* Macro declarations for Host Driver version */
dflet 6:778b081f6a13 249 /*****************************************************************************/
dflet 6:778b081f6a13 250 #define SL_DRIVER_VERSION "1.0.0.10"
dflet 6:778b081f6a13 251 #define SL_MAJOR_VERSION_NUM 1L
dflet 6:778b081f6a13 252 #define SL_MINOR_VERSION_NUM 0L
dflet 6:778b081f6a13 253 #define SL_VERSION_NUM 0L
dflet 6:778b081f6a13 254 #define SL_SUB_VERSION_NUM 10L
dflet 6:778b081f6a13 255
dflet 6:778b081f6a13 256
dflet 6:778b081f6a13 257 /*****************************************************************************/
dflet 6:778b081f6a13 258 /* Macro declarations for predefined configurations */
dflet 6:778b081f6a13 259 /*****************************************************************************/
dflet 6:778b081f6a13 260
dflet 6:778b081f6a13 261 #ifdef SL_TINY
dflet 6:778b081f6a13 262
dflet 6:778b081f6a13 263 #undef SL_INC_ARG_CHECK
dflet 6:778b081f6a13 264 #undef SL_INC_EXT_API
dflet 6:778b081f6a13 265 #undef SL_INC_SOCK_SERVER_SIDE_API
dflet 6:778b081f6a13 266 #undef SL_INC_WLAN_PKG
dflet 6:778b081f6a13 267 #undef SL_INC_NET_CFG_PKG
dflet 6:778b081f6a13 268 #undef SL_INC_FS_PKG
dflet 6:778b081f6a13 269 #undef SL_INC_SET_UART_MODE
dflet 6:778b081f6a13 270 #undef SL_INC_NVMEM_PKG
dflet 6:778b081f6a13 271 #define SL_INC_STD_BSD_API_NAMING
dflet 6:778b081f6a13 272 #define SL_INC_SOCK_CLIENT_SIDE_API
dflet 6:778b081f6a13 273 #define SL_INC_SOCK_RECV_API
dflet 6:778b081f6a13 274 #define SL_INC_SOCK_SEND_API
dflet 6:778b081f6a13 275 #define SL_INC_SOCKET_PKG
dflet 6:778b081f6a13 276 #define SL_INC_NET_APP_PKG
dflet 6:778b081f6a13 277 #endif
dflet 6:778b081f6a13 278
dflet 6:778b081f6a13 279 #ifdef SL_SMALL
dflet 6:778b081f6a13 280 #undef SL_INC_EXT_API
dflet 6:778b081f6a13 281 #undef SL_INC_NET_APP_PKG
dflet 6:778b081f6a13 282 #undef SL_INC_NET_CFG_PKG
dflet 6:778b081f6a13 283 #undef SL_INC_FS_PKG
dflet 6:778b081f6a13 284 #define SL_INC_ARG_CHECK
dflet 6:778b081f6a13 285 #define SL_INC_WLAN_PKG
dflet 6:778b081f6a13 286 #define SL_INC_SOCKET_PKG
dflet 6:778b081f6a13 287 #define SL_INC_SOCK_CLIENT_SIDE_API
dflet 6:778b081f6a13 288 #define SL_INC_SOCK_SERVER_SIDE_API
dflet 6:778b081f6a13 289 #define SL_INC_SOCK_RECV_API
dflet 6:778b081f6a13 290 #define SL_INC_SOCK_SEND_API
dflet 6:778b081f6a13 291 #define SL_INC_SET_UART_MODE
dflet 6:778b081f6a13 292 #endif
dflet 6:778b081f6a13 293
dflet 6:778b081f6a13 294 #ifdef SL_FULL
dflet 6:778b081f6a13 295 #define SL_INC_EXT_API
dflet 6:778b081f6a13 296 #define SL_INC_NET_APP_PKG
dflet 6:778b081f6a13 297 #define SL_INC_NET_CFG_PKG
dflet 6:778b081f6a13 298 #define SL_INC_FS_PKG
dflet 6:778b081f6a13 299 #define SL_INC_ARG_CHECK
dflet 6:778b081f6a13 300 #define SL_INC_WLAN_PKG
dflet 6:778b081f6a13 301 #define SL_INC_SOCKET_PKG
dflet 6:778b081f6a13 302 #define SL_INC_SOCK_CLIENT_SIDE_API
dflet 6:778b081f6a13 303 #define SL_INC_SOCK_SERVER_SIDE_API
dflet 6:778b081f6a13 304 #define SL_INC_SOCK_RECV_API
dflet 6:778b081f6a13 305 #define SL_INC_SOCK_SEND_API
dflet 6:778b081f6a13 306 #define SL_INC_SET_UART_MODE
dflet 6:778b081f6a13 307 #endif
dflet 6:778b081f6a13 308
dflet 6:778b081f6a13 309 #define SL_RET_CODE_OK (0)
dflet 6:778b081f6a13 310 #define SL_RET_CODE_INVALID_INPUT (-2)
dflet 6:778b081f6a13 311 #define SL_RET_CODE_SELF_ERROR (-3)
dflet 6:778b081f6a13 312 #define SL_RET_CODE_NWP_IF_ERROR (-4)
dflet 6:778b081f6a13 313 #define SL_RET_CODE_MALLOC_ERROR (-5)
dflet 6:778b081f6a13 314
dflet 6:778b081f6a13 315 #define sl_SyncObjClear(pObj) sl_SyncObjWait(pObj,NON_OS_SYNC_OBJ_SIGNAL_VALUE,NON_OS_SYNC_OBJ_CLEAR_VALUE,SL_OS_NO_WAIT)
dflet 6:778b081f6a13 316
dflet 6:778b081f6a13 317 #ifndef SL_TINY_EXT
dflet 6:778b081f6a13 318 #define SL_MAX_SOCKETS (8)
dflet 6:778b081f6a13 319 #else
dflet 6:778b081f6a13 320 #define SL_MAX_SOCKETS (2)
dflet 6:778b081f6a13 321 #endif
dflet 6:778b081f6a13 322
dflet 6:778b081f6a13 323 /*****************************************************************************/
dflet 6:778b081f6a13 324 /* Types definitions */
dflet 6:778b081f6a13 325 /*****************************************************************************/
dflet 6:778b081f6a13 326
dflet 6:778b081f6a13 327
dflet 6:778b081f6a13 328 #ifndef NULL
dflet 6:778b081f6a13 329 #define NULL (0)
dflet 6:778b081f6a13 330 #endif
dflet 6:778b081f6a13 331
dflet 6:778b081f6a13 332 #ifndef FALSE
dflet 6:778b081f6a13 333 #define FALSE (0)
dflet 6:778b081f6a13 334 #endif
dflet 6:778b081f6a13 335
dflet 6:778b081f6a13 336 #ifndef TRUE
dflet 6:778b081f6a13 337 #define TRUE (!FALSE)
dflet 6:778b081f6a13 338 #endif
dflet 6:778b081f6a13 339
dflet 6:778b081f6a13 340 #ifndef OK
dflet 6:778b081f6a13 341 #define OK (0)
dflet 6:778b081f6a13 342 #endif
dflet 6:778b081f6a13 343
dflet 6:778b081f6a13 344 //#ifndef _SL_USER_TYPES
dflet 6:778b081f6a13 345 //typedef unsigned char _u8;
dflet 6:778b081f6a13 346 //typedef signed char _i8;
dflet 6:778b081f6a13 347
dflet 6:778b081f6a13 348 //typedef unsigned short _u16;
dflet 6:778b081f6a13 349 //typedef signed short _i16;
dflet 6:778b081f6a13 350
dflet 6:778b081f6a13 351 //typedef unsigned long _u32;
dflet 6:778b081f6a13 352 //typedef signed long _i32;
dflet 6:778b081f6a13 353 //#define _volatile volatile
dflet 6:778b081f6a13 354 //#define _const const
dflet 6:778b081f6a13 355 //#endif
dflet 6:778b081f6a13 356
dflet 6:778b081f6a13 357 typedef uint16_t _SlOpcode_t;
dflet 6:778b081f6a13 358 typedef uint8_t _SlArgSize_t;
dflet 6:778b081f6a13 359 typedef int16_t _SlDataSize_t;
dflet 6:778b081f6a13 360 typedef int16_t _SlReturnVal_t;
dflet 6:778b081f6a13 361
dflet 6:778b081f6a13 362 /*
dflet 6:778b081f6a13 363 * This event status used to block or continue the event propagation
dflet 6:778b081f6a13 364 * through all the registered external libs/user application
dflet 6:778b081f6a13 365 *
dflet 6:778b081f6a13 366 */
dflet 6:778b081f6a13 367
dflet 6:778b081f6a13 368 typedef enum {
dflet 6:778b081f6a13 369 EVENT_PROPAGATION_BLOCK = 0,
dflet 6:778b081f6a13 370 EVENT_PROPAGATION_CONTINUE
dflet 6:778b081f6a13 371
dflet 6:778b081f6a13 372 } _SlEventPropogationStatus_e;
dflet 6:778b081f6a13 373
dflet 6:778b081f6a13 374 typedef void (*_SlSpawnEntryFunc_t)(void* pValue);
dflet 6:778b081f6a13 375
dflet 6:778b081f6a13 376 }//namespace mbed_cc3100
dflet 6:778b081f6a13 377 /*****************************************************************************/
dflet 6:778b081f6a13 378 /* Include files */
dflet 6:778b081f6a13 379 /*****************************************************************************/
dflet 6:778b081f6a13 380
dflet 6:778b081f6a13 381 /*
dflet 6:778b081f6a13 382 objInclusion.h and user.h must be included before all api header files
dflet 6:778b081f6a13 383 objInclusion.h must be the last arrangement just before including the API header files
dflet 6:778b081f6a13 384 since it based on the other configurations to decide which object should be included
dflet 6:778b081f6a13 385 */
dflet 6:778b081f6a13 386 #include "cc3100_objInclusion.h"
dflet 6:778b081f6a13 387 #include "cc3100_trace.h"
dflet 6:778b081f6a13 388 #include "cc3100_fs.h"
dflet 6:778b081f6a13 389 #include "cc3100_socket.h"
dflet 6:778b081f6a13 390 #include "cc3100_netapp.h"
dflet 6:778b081f6a13 391 #include "cc3100_wlan.h"
dflet 6:778b081f6a13 392 #include "cc3100.h"
dflet 6:778b081f6a13 393 #include "cc3100_netcfg.h"
dflet 6:778b081f6a13 394 #include "cc3100_wlan_rx_filters.h"
dflet 6:778b081f6a13 395
dflet 6:778b081f6a13 396 /* The general events dispatcher which is
dflet 6:778b081f6a13 397 * initialized to the user handler */
dflet 6:778b081f6a13 398 #ifdef sl_GeneralEvtHdlr
dflet 6:778b081f6a13 399 #define _SlDrvHandleGeneralEvents sl_GeneralEvtHdlr
dflet 6:778b081f6a13 400 #endif
dflet 6:778b081f6a13 401
dflet 6:778b081f6a13 402 /* The wlan events dispatcher which is
dflet 6:778b081f6a13 403 * initialized to the user handler */
dflet 6:778b081f6a13 404 #ifdef sl_WlanEvtHdlr
dflet 6:778b081f6a13 405 #define _SlDrvHandleWlanEvents sl_WlanEvtHdlr
dflet 6:778b081f6a13 406 #endif
dflet 6:778b081f6a13 407
dflet 6:778b081f6a13 408 /* The NetApp events dispatcher which is
dflet 6:778b081f6a13 409 * initialized to the user handler */
dflet 6:778b081f6a13 410 #ifdef sl_NetAppEvtHdlr
dflet 6:778b081f6a13 411 #define _SlDrvHandleNetAppEvents sl_NetAppEvtHdlr
dflet 6:778b081f6a13 412 #endif
dflet 6:778b081f6a13 413
dflet 6:778b081f6a13 414 /* The http server events dispatcher which is
dflet 6:778b081f6a13 415 * initialized to the user handler if exists */
dflet 6:778b081f6a13 416 #ifdef sl_HttpServerCallback
dflet 6:778b081f6a13 417 #define _SlDrvHandleHttpServerEvents sl_HttpServerCallback
dflet 6:778b081f6a13 418 #endif
dflet 6:778b081f6a13 419
dflet 6:778b081f6a13 420 /* The socket events dispatcher which is
dflet 6:778b081f6a13 421 * initialized to the user handler */
dflet 6:778b081f6a13 422 #ifdef sl_SockEvtHdlr
dflet 6:778b081f6a13 423 #define _SlDrvHandleSockEvents sl_SockEvtHdlr
dflet 6:778b081f6a13 424 #endif
dflet 6:778b081f6a13 425
dflet 6:778b081f6a13 426
dflet 6:778b081f6a13 427
dflet 6:778b081f6a13 428 #define __CONCAT(x,y) x ## y
dflet 6:778b081f6a13 429 #define __CONCAT2(x,y) __CONCAT(x,y)
dflet 6:778b081f6a13 430
dflet 6:778b081f6a13 431
dflet 6:778b081f6a13 432 /*
dflet 6:778b081f6a13 433 * The section below handles the external lib event registration
dflet 6:778b081f6a13 434 * according to the desired events it specified in its API header file.
dflet 6:778b081f6a13 435 * The external lib should be first installed by the user (see user.h)
dflet 6:778b081f6a13 436 */
dflet 6:778b081f6a13 437 #ifdef SL_EXT_LIB_1
dflet 6:778b081f6a13 438
dflet 6:778b081f6a13 439 /* General Event Registration */
dflet 6:778b081f6a13 440 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_GENERAL_EVENT)
dflet 6:778b081f6a13 441 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 6:778b081f6a13 442 #define SlExtLib1GeneralEventHandler __CONCAT2(SL_EXT_LIB_1, _GeneralEventHdl)
dflet 6:778b081f6a13 443
dflet 6:778b081f6a13 444 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 445 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 446 #endif
dflet 6:778b081f6a13 447
dflet 6:778b081f6a13 448 /* Wlan Event Registration */
dflet 6:778b081f6a13 449 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_WLAN_EVENT)
dflet 6:778b081f6a13 450 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _WlanEventHdl) (SlWlanEvent_t *);
dflet 6:778b081f6a13 451 #define SlExtLib1WlanEventHandler __CONCAT2(SL_EXT_LIB_1, _WlanEventHdl)
dflet 6:778b081f6a13 452
dflet 6:778b081f6a13 453 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 454 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 455 #endif
dflet 6:778b081f6a13 456
dflet 6:778b081f6a13 457 /* NetApp Event Registration */
dflet 6:778b081f6a13 458 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_NETAPP_EVENT)
dflet 6:778b081f6a13 459 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 6:778b081f6a13 460 #define SlExtLib1NetAppEventHandler __CONCAT2(SL_EXT_LIB_1, _NetAppEventHdl)
dflet 6:778b081f6a13 461
dflet 6:778b081f6a13 462 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 463 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 464 #endif
dflet 6:778b081f6a13 465
dflet 6:778b081f6a13 466 /* Http Server Event Registration */
dflet 6:778b081f6a13 467 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_HTTP_SERVER_EVENT)
dflet 6:778b081f6a13 468 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 6:778b081f6a13 469 #define SlExtLib1HttpServerEventHandler __CONCAT2(SL_EXT_LIB_1, _HttpServerEventHdl)
dflet 6:778b081f6a13 470
dflet 6:778b081f6a13 471 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 472 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 473 #endif
dflet 6:778b081f6a13 474
dflet 6:778b081f6a13 475 /* Socket Event Registration */
dflet 6:778b081f6a13 476 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_SOCK_EVENT)
dflet 6:778b081f6a13 477 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _SockEventHdl) (SlSockEvent_t *);
dflet 6:778b081f6a13 478 #define SlExtLib1SockEventHandler __CONCAT2(SL_EXT_LIB_1, _SockEventHdl)
dflet 6:778b081f6a13 479
dflet 6:778b081f6a13 480 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 481 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 482 #endif
dflet 6:778b081f6a13 483
dflet 6:778b081f6a13 484 #endif
dflet 6:778b081f6a13 485
dflet 6:778b081f6a13 486
dflet 6:778b081f6a13 487 #ifdef SL_EXT_LIB_2
dflet 6:778b081f6a13 488
dflet 6:778b081f6a13 489 /* General Event Registration */
dflet 6:778b081f6a13 490 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_GENERAL_EVENT)
dflet 6:778b081f6a13 491 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 6:778b081f6a13 492 #define SlExtLib2GeneralEventHandler __CONCAT2(SL_EXT_LIB_2, _GeneralEventHdl)
dflet 6:778b081f6a13 493
dflet 6:778b081f6a13 494 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 495 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 496 #endif
dflet 6:778b081f6a13 497
dflet 6:778b081f6a13 498 /* Wlan Event Registration */
dflet 6:778b081f6a13 499 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_WLAN_EVENT)
dflet 6:778b081f6a13 500 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _WlanEventHdl) (SlWlanEvent_t *);
dflet 6:778b081f6a13 501 #define SlExtLib2WlanEventHandler __CONCAT2(SL_EXT_LIB_2, _WlanEventHdl)
dflet 6:778b081f6a13 502
dflet 6:778b081f6a13 503 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 504 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 505 #endif
dflet 6:778b081f6a13 506
dflet 6:778b081f6a13 507 /* NetApp Event Registration */
dflet 6:778b081f6a13 508 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_NETAPP_EVENT)
dflet 6:778b081f6a13 509 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 6:778b081f6a13 510 #define SlExtLib2NetAppEventHandler __CONCAT2(SL_EXT_LIB_2, _NetAppEventHdl)
dflet 6:778b081f6a13 511
dflet 6:778b081f6a13 512 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 513 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 514 #endif
dflet 6:778b081f6a13 515
dflet 6:778b081f6a13 516 /* Http Server Event Registration */
dflet 6:778b081f6a13 517 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_HTTP_SERVER_EVENT)
dflet 6:778b081f6a13 518 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 6:778b081f6a13 519 #define SlExtLib2HttpServerEventHandler __CONCAT2(SL_EXT_LIB_2, _HttpServerEventHdl)
dflet 6:778b081f6a13 520
dflet 6:778b081f6a13 521 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 522 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 523 #endif
dflet 6:778b081f6a13 524
dflet 6:778b081f6a13 525 /* Socket Event Registration */
dflet 6:778b081f6a13 526 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_SOCK_EVENT)
dflet 6:778b081f6a13 527 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _SockEventHdl) (SlSockEvent_t *);
dflet 6:778b081f6a13 528 #define SlExtLib2SockEventHandler __CONCAT2(SL_EXT_LIB_2, _SockEventHdl)
dflet 6:778b081f6a13 529
dflet 6:778b081f6a13 530 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 531 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 532 #endif
dflet 6:778b081f6a13 533
dflet 6:778b081f6a13 534 #endif
dflet 6:778b081f6a13 535
dflet 6:778b081f6a13 536
dflet 6:778b081f6a13 537 #ifdef SL_EXT_LIB_3
dflet 6:778b081f6a13 538
dflet 6:778b081f6a13 539 /* General Event Registration */
dflet 6:778b081f6a13 540 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_GENERAL_EVENT)
dflet 6:778b081f6a13 541 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 6:778b081f6a13 542 #define SlExtLib3GeneralEventHandler __CONCAT2(SL_EXT_LIB_3, _GeneralEventHdl)
dflet 6:778b081f6a13 543
dflet 6:778b081f6a13 544 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 545 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 546 #endif
dflet 6:778b081f6a13 547
dflet 6:778b081f6a13 548 /* Wlan Event Registration */
dflet 6:778b081f6a13 549 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_WLAN_EVENT)
dflet 6:778b081f6a13 550 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _WlanEventHdl) (SlWlanEvent_t *);
dflet 6:778b081f6a13 551 #define SlExtLib3WlanEventHandler __CONCAT2(SL_EXT_LIB_3, _WlanEventHdl)
dflet 6:778b081f6a13 552
dflet 6:778b081f6a13 553 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 554 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 555 #endif
dflet 6:778b081f6a13 556
dflet 6:778b081f6a13 557 /* NetApp Event Registration */
dflet 6:778b081f6a13 558 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_NETAPP_EVENT)
dflet 6:778b081f6a13 559 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 6:778b081f6a13 560 #define SlExtLib3NetAppEventHandler __CONCAT2(SL_EXT_LIB_3, _NetAppEventHdl)
dflet 6:778b081f6a13 561
dflet 6:778b081f6a13 562 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 563 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 564 #endif
dflet 6:778b081f6a13 565
dflet 6:778b081f6a13 566 /* Http Server Event Registration */
dflet 6:778b081f6a13 567 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_HTTP_SERVER_EVENT)
dflet 6:778b081f6a13 568 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 6:778b081f6a13 569 #define SlExtLib3HttpServerEventHandler __CONCAT2(SL_EXT_LIB_3, _HttpServerEventHdl)
dflet 6:778b081f6a13 570
dflet 6:778b081f6a13 571 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 572 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 573 #endif
dflet 6:778b081f6a13 574
dflet 6:778b081f6a13 575 /* Socket Event Registration */
dflet 6:778b081f6a13 576 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_SOCK_EVENT)
dflet 6:778b081f6a13 577 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _SockEventHdl) (SlSockEvent_t *);
dflet 6:778b081f6a13 578 #define SlExtLib3SockEventHandler __CONCAT2(SL_EXT_LIB_3, _SockEventHdl)
dflet 6:778b081f6a13 579
dflet 6:778b081f6a13 580 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 581 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 582 #endif
dflet 6:778b081f6a13 583
dflet 6:778b081f6a13 584 #endif
dflet 6:778b081f6a13 585
dflet 6:778b081f6a13 586
dflet 6:778b081f6a13 587 #ifdef SL_EXT_LIB_4
dflet 6:778b081f6a13 588
dflet 6:778b081f6a13 589 /* General Event Registration */
dflet 6:778b081f6a13 590 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_GENERAL_EVENT)
dflet 6:778b081f6a13 591 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 6:778b081f6a13 592 #define SlExtLib4GeneralEventHandler __CONCAT2(SL_EXT_LIB_4, _GeneralEventHdl)
dflet 6:778b081f6a13 593
dflet 6:778b081f6a13 594 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 595 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 596 #endif
dflet 6:778b081f6a13 597
dflet 6:778b081f6a13 598 /* Wlan Event Registration */
dflet 6:778b081f6a13 599 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_WLAN_EVENT)
dflet 6:778b081f6a13 600 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _WlanEventHdl) (SlWlanEvent_t *);
dflet 6:778b081f6a13 601 #define SlExtLib4WlanEventHandler __CONCAT2(SL_EXT_LIB_4, _WlanEventHdl)
dflet 6:778b081f6a13 602
dflet 6:778b081f6a13 603 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 604 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 605 #endif
dflet 6:778b081f6a13 606
dflet 6:778b081f6a13 607 /* NetApp Event Registration */
dflet 6:778b081f6a13 608 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_NETAPP_EVENT)
dflet 6:778b081f6a13 609 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 6:778b081f6a13 610 #define SlExtLib4NetAppEventHandler __CONCAT2(SL_EXT_LIB_4, _NetAppEventHdl)
dflet 6:778b081f6a13 611
dflet 6:778b081f6a13 612 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 613 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 614 #endif
dflet 6:778b081f6a13 615
dflet 6:778b081f6a13 616 /* Http Server Event Registration */
dflet 6:778b081f6a13 617 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_HTTP_SERVER_EVENT)
dflet 6:778b081f6a13 618 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 6:778b081f6a13 619 #define SlExtLib4HttpServerEventHandler __CONCAT2(SL_EXT_LIB_4, _HttpServerEventHdl)
dflet 6:778b081f6a13 620
dflet 6:778b081f6a13 621 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 622 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 623 #endif
dflet 6:778b081f6a13 624
dflet 6:778b081f6a13 625 /* Socket Event Registration */
dflet 6:778b081f6a13 626 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_SOCK_EVENT)
dflet 6:778b081f6a13 627 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _SockEventHdl) (SlSockEvent_t *);
dflet 6:778b081f6a13 628 #define SlExtLib4SockEventHandler __CONCAT2(SL_EXT_LIB_4, _SockEventHdl)
dflet 6:778b081f6a13 629
dflet 6:778b081f6a13 630 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 631 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 632 #endif
dflet 6:778b081f6a13 633
dflet 6:778b081f6a13 634 #endif
dflet 6:778b081f6a13 635
dflet 6:778b081f6a13 636
dflet 6:778b081f6a13 637 #ifdef SL_EXT_LIB_5
dflet 6:778b081f6a13 638
dflet 6:778b081f6a13 639 /* General Event Registration */
dflet 6:778b081f6a13 640 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_GENERAL_EVENT)
dflet 6:778b081f6a13 641 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 6:778b081f6a13 642 #define SlExtLib5GeneralEventHandler __CONCAT2(SL_EXT_LIB_5, _GeneralEventHdl)
dflet 6:778b081f6a13 643
dflet 6:778b081f6a13 644 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 645 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 6:778b081f6a13 646 #endif
dflet 6:778b081f6a13 647
dflet 6:778b081f6a13 648 /* Wlan Event Registration */
dflet 6:778b081f6a13 649 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_WLAN_EVENT)
dflet 6:778b081f6a13 650 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _WlanEventHdl) (SlWlanEvent_t *);
dflet 6:778b081f6a13 651 #define SlExtLib5WlanEventHandler __CONCAT2(SL_EXT_LIB_5, _WlanEventHdl)
dflet 6:778b081f6a13 652
dflet 6:778b081f6a13 653 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 654 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 6:778b081f6a13 655 #endif
dflet 6:778b081f6a13 656
dflet 6:778b081f6a13 657 /* NetApp Event Registration */
dflet 6:778b081f6a13 658 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_NETAPP_EVENT)
dflet 6:778b081f6a13 659 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 6:778b081f6a13 660 #define SlExtLib5NetAppEventHandler __CONCAT2(SL_EXT_LIB_5, _NetAppEventHdl)
dflet 6:778b081f6a13 661
dflet 6:778b081f6a13 662 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 663 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 6:778b081f6a13 664 #endif
dflet 6:778b081f6a13 665
dflet 6:778b081f6a13 666 /* Http Server Event Registration */
dflet 6:778b081f6a13 667 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_HTTP_SERVER_EVENT)
dflet 6:778b081f6a13 668 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 6:778b081f6a13 669 #define SlExtLib5HttpServerEventHandler __CONCAT2(SL_EXT_LIB_5, _HttpServerEventHdl)
dflet 6:778b081f6a13 670
dflet 6:778b081f6a13 671 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 672 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 6:778b081f6a13 673 #endif
dflet 6:778b081f6a13 674
dflet 6:778b081f6a13 675 /* Socket Event Registration */
dflet 6:778b081f6a13 676 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_SOCK_EVENT)
dflet 6:778b081f6a13 677 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _SockEventHdl) (SlSockEvent_t *);
dflet 6:778b081f6a13 678 #define SlExtLib5SockEventHandler __CONCAT2(SL_EXT_LIB_5, _SockEventHdl)
dflet 6:778b081f6a13 679
dflet 6:778b081f6a13 680 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 681 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 6:778b081f6a13 682 #endif
dflet 6:778b081f6a13 683
dflet 6:778b081f6a13 684 #endif
dflet 6:778b081f6a13 685
dflet 6:778b081f6a13 686
dflet 6:778b081f6a13 687
dflet 6:778b081f6a13 688 #if defined(EXT_LIB_REGISTERED_GENERAL_EVENTS)
dflet 6:778b081f6a13 689 void _SlDrvHandleGeneralEvents(SlDeviceEvent_t *slGeneralEvent);
dflet 6:778b081f6a13 690 #endif
dflet 6:778b081f6a13 691
dflet 6:778b081f6a13 692 #if defined(EXT_LIB_REGISTERED_WLAN_EVENTS)
dflet 6:778b081f6a13 693 void _SlDrvHandleWlanEvents(SlWlanEvent_t *slWlanEvent);
dflet 6:778b081f6a13 694 #endif
dflet 6:778b081f6a13 695
dflet 6:778b081f6a13 696 #if defined (EXT_LIB_REGISTERED_NETAPP_EVENTS)
dflet 6:778b081f6a13 697 void _SlDrvHandleNetAppEvents(SlNetAppEvent_t *slNetAppEvent);
dflet 6:778b081f6a13 698 #endif
dflet 6:778b081f6a13 699
dflet 6:778b081f6a13 700 #if defined(EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS)
dflet 6:778b081f6a13 701 void _SlDrvHandleHttpServerEvents(SlHttpServerEvent_t *slHttpServerEvent, SlHttpServerResponse_t *slHttpServerResponse);
dflet 6:778b081f6a13 702 #endif
dflet 6:778b081f6a13 703
dflet 6:778b081f6a13 704
dflet 6:778b081f6a13 705 #if defined(EXT_LIB_REGISTERED_SOCK_EVENTS)
dflet 6:778b081f6a13 706 void _SlDrvHandleSockEvents(SlSockEvent_t *slSockEvent);
dflet 6:778b081f6a13 707 #endif
dflet 6:778b081f6a13 708
dflet 6:778b081f6a13 709 #ifdef SL_PLATFORM_MULTI_THREADED
dflet 6:778b081f6a13 710 #include "cc3100_spawn.h"
dflet 6:778b081f6a13 711 #else
dflet 6:778b081f6a13 712 #include "cc3100_nonos.h"
dflet 6:778b081f6a13 713 #endif
dflet 6:778b081f6a13 714
dflet 6:778b081f6a13 715 namespace mbed_cc3100 {
dflet 6:778b081f6a13 716
dflet 6:778b081f6a13 717 /* Async functions description*/
dflet 6:778b081f6a13 718
dflet 6:778b081f6a13 719 /*!
dflet 6:778b081f6a13 720 \brief General async event for inspecting general events
dflet 6:778b081f6a13 721
dflet 6:778b081f6a13 722 \param[out] pSlDeviceEvent pointer to SlDeviceEvent_t
dflet 6:778b081f6a13 723
dflet 6:778b081f6a13 724 \par- <b>pSlDeviceEvent->Event = SL_DEVICE_FATAL_ERROR_EVENT </b>
dflet 6:778b081f6a13 725 - pSlDeviceEvent->EventData.deviceEvent fields:
dflet 6:778b081f6a13 726 - status: An error code indication from the device
dflet 6:778b081f6a13 727 - sender: The sender originator which is based on SlErrorSender_e enum
dflet 6:778b081f6a13 728
dflet 6:778b081f6a13 729 - <b>pSlDeviceEvent->Event = SL_DEVICE_ABORT_ERROR_EVENT </b>
dflet 6:778b081f6a13 730 Indicates a severe error occured and the device stopped
dflet 6:778b081f6a13 731 - pSlDeviceEvent->EventData.deviceReport fields:
dflet 6:778b081f6a13 732 - AbortType: An idication of the event type
dflet 6:778b081f6a13 733 - AbortData: Additional info about the data error
dflet 6:778b081f6a13 734
dflet 6:778b081f6a13 735
dflet 6:778b081f6a13 736 \par Example for fatal error:
dflet 6:778b081f6a13 737 \code
dflet 6:778b081f6a13 738 printf(General Event Handler - ID=%d Sender=%d\n\n",
dflet 6:778b081f6a13 739 pSlDeviceEvent->EventData.deviceEvent.status, // status of the general event
dflet 6:778b081f6a13 740 pSlDeviceEvent->EventData.deviceEvent.sender); // sender type
dflet 6:778b081f6a13 741 \endcode
dflet 6:778b081f6a13 742 \par Example for abort request:
dflet 6:778b081f6a13 743 \code
dflet 6:778b081f6a13 744 printf(Abort type =%d Abort Data=%d\n\n",
dflet 6:778b081f6a13 745 pSlDeviceEvent->EventData.deviceReport.AbortType,
dflet 6:778b081f6a13 746 pSlDeviceEvent->EventData.deviceReport.AbortData);
dflet 6:778b081f6a13 747
dflet 6:778b081f6a13 748 \endcode
dflet 6:778b081f6a13 749 */
dflet 6:778b081f6a13 750 //#if (defined(sl_GeneralEvtHdlr))
dflet 6:778b081f6a13 751 //void sl_GeneralEvtHdlr(SlDeviceEvent_t *pSlDeviceEvent);
dflet 6:778b081f6a13 752 //#endif
dflet 6:778b081f6a13 753
dflet 6:778b081f6a13 754
dflet 6:778b081f6a13 755 /*!
dflet 6:778b081f6a13 756 \brief WLAN Async event handler
dflet 6:778b081f6a13 757
dflet 6:778b081f6a13 758 \param[out] pSlWlanEvent pointer to SlWlanEvent_t data
dflet 6:778b081f6a13 759
dflet 6:778b081f6a13 760 \par
dflet 6:778b081f6a13 761 Parameters:
dflet 6:778b081f6a13 762
dflet 6:778b081f6a13 763 - <b>pSlWlanEvent->Event = SL_WLAN_CONNECT_EVENT </b>, STA or P2P client connection indication event
dflet 6:778b081f6a13 764 - pSlWlanEvent->EventData.STAandP2PModeWlanConnected main fields:
dflet 6:778b081f6a13 765 - ssid_name
dflet 6:778b081f6a13 766 - ssid_len
dflet 6:778b081f6a13 767 - bssid
dflet 6:778b081f6a13 768 - go_peer_device_name
dflet 6:778b081f6a13 769 - go_peer_device_name_len
dflet 6:778b081f6a13 770
dflet 6:778b081f6a13 771 - <b>pSlWlanEvent->Event = SL_WLAN_DISCONNECT_EVENT </b>, STA or P2P client disconnection event
dflet 6:778b081f6a13 772 - pSlWlanEvent->EventData.STAandP2PModeDisconnected main fields:
dflet 6:778b081f6a13 773 - ssid_name
dflet 6:778b081f6a13 774 - ssid_len
dflet 6:778b081f6a13 775 - reason_code
dflet 6:778b081f6a13 776
dflet 6:778b081f6a13 777 - <b>pSlWlanEvent->Event = SL_WLAN_STA_CONNECTED_EVENT </b>, AP/P2P(Go) connected STA/P2P(Client)
dflet 6:778b081f6a13 778 - pSlWlanEvent->EventData.APModeStaConnected fields:
dflet 6:778b081f6a13 779 - go_peer_device_name
dflet 6:778b081f6a13 780 - mac
dflet 6:778b081f6a13 781 - go_peer_device_name_len
dflet 6:778b081f6a13 782 - wps_dev_password_id
dflet 6:778b081f6a13 783 - own_ssid: relevant for event sta-connected only
dflet 6:778b081f6a13 784 - own_ssid_len: relevant for event sta-connected only
dflet 6:778b081f6a13 785
dflet 6:778b081f6a13 786 - <b>pSlWlanEvent->Event = SL_WLAN_STA_DISCONNECTED_EVENT </b>, AP/P2P(Go) disconnected STA/P2P(Client)
dflet 6:778b081f6a13 787 - pSlWlanEvent->EventData.APModestaDisconnected fields:
dflet 6:778b081f6a13 788 - go_peer_device_name
dflet 6:778b081f6a13 789 - mac
dflet 6:778b081f6a13 790 - go_peer_device_name_len
dflet 6:778b081f6a13 791 - wps_dev_password_id
dflet 6:778b081f6a13 792 - own_ssid: relevant for event sta-connected only
dflet 6:778b081f6a13 793 - own_ssid_len: relevant for event sta-connected only
dflet 6:778b081f6a13 794
dflet 6:778b081f6a13 795 - <b>pSlWlanEvent->Event = SL_WLAN_SMART_CONFIG_COMPLETE_EVENT </b>
dflet 6:778b081f6a13 796 - pSlWlanEvent->EventData.smartConfigStartResponse fields:
dflet 6:778b081f6a13 797 - status
dflet 6:778b081f6a13 798 - ssid_len
dflet 6:778b081f6a13 799 - ssid
dflet 6:778b081f6a13 800 - private_token_len
dflet 6:778b081f6a13 801 - private_token
dflet 6:778b081f6a13 802
dflet 6:778b081f6a13 803 - <b>pSlWlanEvent->Event = SL_WLAN_SMART_CONFIG_STOP_EVENT </b>
dflet 6:778b081f6a13 804 - pSlWlanEvent->EventData.smartConfigStopResponse fields:
dflet 6:778b081f6a13 805 - status
dflet 6:778b081f6a13 806
dflet 6:778b081f6a13 807 - <b>pSlWlanEvent->Event = SL_WLAN_P2P_DEV_FOUND_EVENT </b>
dflet 6:778b081f6a13 808 - pSlWlanEvent->EventData.P2PModeDevFound fields:
dflet 6:778b081f6a13 809 - go_peer_device_name
dflet 6:778b081f6a13 810 - mac
dflet 6:778b081f6a13 811 - go_peer_device_name_len
dflet 6:778b081f6a13 812 - wps_dev_password_id
dflet 6:778b081f6a13 813 - own_ssid: relevant for event sta-connected only
dflet 6:778b081f6a13 814 - own_ssid_len: relevant for event sta-connected only
dflet 6:778b081f6a13 815
dflet 6:778b081f6a13 816 - <b>pSlWlanEvent->Event = SL_WLAN_P2P_NEG_REQ_RECEIVED_EVENT </b>
dflet 6:778b081f6a13 817 - pSlWlanEvent->EventData.P2PModeNegReqReceived fields
dflet 6:778b081f6a13 818 - go_peer_device_name
dflet 6:778b081f6a13 819 - mac
dflet 6:778b081f6a13 820 - go_peer_device_name_len
dflet 6:778b081f6a13 821 - wps_dev_password_id
dflet 6:778b081f6a13 822 - own_ssid: relevant for event sta-connected only
dflet 6:778b081f6a13 823
dflet 6:778b081f6a13 824 - <b>pSlWlanEvent->Event = SL_WLAN_CONNECTION_FAILED_EVENT </b>, P2P only
dflet 6:778b081f6a13 825 - pSlWlanEvent->EventData.P2PModewlanConnectionFailure fields:
dflet 6:778b081f6a13 826 - status
dflet 6:778b081f6a13 827 */
dflet 6:778b081f6a13 828 //#if (defined(sl_WlanEvtHdlr))
dflet 6:778b081f6a13 829 //void sl_WlanEvtHdlr(SlWlanEvent_t *pSlWlanEvent);
dflet 6:778b081f6a13 830 //#endif
dflet 6:778b081f6a13 831
dflet 6:778b081f6a13 832
dflet 6:778b081f6a13 833 /*!
dflet 6:778b081f6a13 834 \brief NETAPP Async event handler
dflet 6:778b081f6a13 835
dflet 6:778b081f6a13 836 \param[out] pSlNetApp pointer to SlNetAppEvent_t data
dflet 6:778b081f6a13 837
dflet 6:778b081f6a13 838 \par
dflet 6:778b081f6a13 839 Parameters:
dflet 6:778b081f6a13 840 - <b>pSlNetApp->Event = SL_NETAPP_IPV4_IPACQUIRED_EVENT</b>, IPV4 acquired event
dflet 6:778b081f6a13 841 - pSlNetApp->EventData.ipAcquiredV4 fields:
dflet 6:778b081f6a13 842 - ip
dflet 6:778b081f6a13 843 - gateway
dflet 6:778b081f6a13 844 - dns
dflet 6:778b081f6a13 845
dflet 6:778b081f6a13 846 - <b>pSlNetApp->Event = SL_NETAPP_IP_LEASED_EVENT</b>, AP or P2P go dhcp lease event
dflet 6:778b081f6a13 847 - pSlNetApp->EventData.ipLeased fields:
dflet 6:778b081f6a13 848 - ip_address
dflet 6:778b081f6a13 849 - lease_time
dflet 6:778b081f6a13 850 - mac
dflet 6:778b081f6a13 851
dflet 6:778b081f6a13 852 - <b>pSlNetApp->Event = SL_NETAPP_IP_RELEASED_EVENT</b>, AP or P2P go dhcp ip release event
dflet 6:778b081f6a13 853 - pSlNetApp->EventData.ipReleased fields
dflet 6:778b081f6a13 854 - ip_address
dflet 6:778b081f6a13 855 - mac
dflet 6:778b081f6a13 856 - reason
dflet 6:778b081f6a13 857
dflet 6:778b081f6a13 858 */
dflet 6:778b081f6a13 859 //#if (defined(sl_NetAppEvtHdlr))
dflet 6:778b081f6a13 860 //void sl_NetAppEvtHdlr(SlNetAppEvent_t *pSlNetApp);
dflet 6:778b081f6a13 861 //#endif
dflet 6:778b081f6a13 862
dflet 6:778b081f6a13 863 /*!
dflet 6:778b081f6a13 864 \brief Socket Async event handler
dflet 6:778b081f6a13 865
dflet 6:778b081f6a13 866 \param[out] pSlSockEvent pointer to SlSockEvent_t data
dflet 6:778b081f6a13 867
dflet 6:778b081f6a13 868 \par
dflet 6:778b081f6a13 869 Parameters:\n
dflet 6:778b081f6a13 870 - <b>pSlSockEvent->Event = SL_SOCKET_TX_FAILED_EVENT</b>
dflet 6:778b081f6a13 871 - pSlSockEvent->SockTxFailData fields:
dflet 6:778b081f6a13 872 - sd
dflet 6:778b081f6a13 873 - status
dflet 6:778b081f6a13 874 - <b>pSlSockEvent->Event = SL_SOCKET_ASYNC_EVENT</b>
dflet 6:778b081f6a13 875 - pSlSockEvent->SockAsyncData fields:
dflet 6:778b081f6a13 876 - sd
dflet 6:778b081f6a13 877 - type: SSL_ACCEPT or RX_FRAGMENTATION_TOO_BIG or OTHER_SIDE_CLOSE_SSL_DATA_NOT_ENCRYPTED
dflet 6:778b081f6a13 878 - val
dflet 6:778b081f6a13 879
dflet 6:778b081f6a13 880 */
dflet 6:778b081f6a13 881 //#if (defined(sl_SockEvtHdlr))
dflet 6:778b081f6a13 882 //void sl_SockEvtHdlr(SlSockEvent_t *pSlSockEvent);
dflet 6:778b081f6a13 883 //#endif
dflet 6:778b081f6a13 884
dflet 6:778b081f6a13 885 /*!
dflet 6:778b081f6a13 886 \brief HTTP server async event
dflet 6:778b081f6a13 887
dflet 6:778b081f6a13 888 \param[out] pSlHttpServerEvent pointer to SlHttpServerEvent_t
dflet 6:778b081f6a13 889 \param[in] pSlHttpServerResponse pointer to SlHttpServerResponse_t
dflet 6:778b081f6a13 890
dflet 6:778b081f6a13 891 \par
dflet 6:778b081f6a13 892 Parameters: \n
dflet 6:778b081f6a13 893
dflet 6:778b081f6a13 894 - <b>pSlHttpServerEvent->Event = SL_NETAPP_HTTPGETTOKENVALUE_EVENT</b>
dflet 6:778b081f6a13 895 - pSlHttpServerEvent->EventData fields:
dflet 6:778b081f6a13 896 - httpTokenName
dflet 6:778b081f6a13 897 - data
dflet 6:778b081f6a13 898 - len
dflet 6:778b081f6a13 899 - pSlHttpServerResponse->ResponseData fields:
dflet 6:778b081f6a13 900 - data
dflet 6:778b081f6a13 901 - len
dflet 6:778b081f6a13 902
dflet 6:778b081f6a13 903 - <b>pSlHttpServerEvent->Event = SL_NETAPP_HTTPPOSTTOKENVALUE_EVENT</b>
dflet 6:778b081f6a13 904 - pSlHttpServerEvent->EventData.httpPostData fields:
dflet 6:778b081f6a13 905 - action
dflet 6:778b081f6a13 906 - token_name
dflet 6:778b081f6a13 907 - token_value
dflet 6:778b081f6a13 908 - pSlHttpServerResponse->ResponseData fields:
dflet 6:778b081f6a13 909 - data
dflet 6:778b081f6a13 910 - len
dflet 6:778b081f6a13 911
dflet 6:778b081f6a13 912 */
dflet 6:778b081f6a13 913 //#if (defined(sl_HttpServerCallback))
dflet 6:778b081f6a13 914 //void sl_HttpServerCallback(SlHttpServerEvent_t *pSlHttpServerEvent, SlHttpServerResponse_t *pSlHttpServerResponse);
dflet 6:778b081f6a13 915 //#endif
dflet 6:778b081f6a13 916 /*!
dflet 6:778b081f6a13 917
dflet 6:778b081f6a13 918 Close the Doxygen group.
dflet 6:778b081f6a13 919 @}
dflet 6:778b081f6a13 920
dflet 6:778b081f6a13 921 */
dflet 6:778b081f6a13 922
dflet 6:778b081f6a13 923 }//namespace mbed_cc3100
dflet 6:778b081f6a13 924
dflet 6:778b081f6a13 925 #endif /* __SIMPLELINK_H__ */
dflet 6:778b081f6a13 926
dflet 6:778b081f6a13 927