cc3100_Socket_Wifi_Server with Ethernet Interface not working

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of cc3100_Test_Demo by David Fletcher

Committer:
artpes
Date:
Fri May 26 10:03:00 2017 +0000
Revision:
9:fd9f64918306
Parent:
6:778b081f6a13
Wifi Server

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dflet 6:778b081f6a13 1 /*
dflet 6:778b081f6a13 2 * objInclusion.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 #ifndef OBJINCLUSION_H_
dflet 6:778b081f6a13 37 #define OBJINCLUSION_H_
dflet 6:778b081f6a13 38
dflet 6:778b081f6a13 39
dflet 6:778b081f6a13 40 #include "cc3100_simplelink.h"
dflet 6:778b081f6a13 41
dflet 6:778b081f6a13 42
dflet 6:778b081f6a13 43 /******************************************************************************
dflet 6:778b081f6a13 44
dflet 6:778b081f6a13 45 For future use
dflet 6:778b081f6a13 46
dflet 6:778b081f6a13 47 *******************************************************************************/
dflet 6:778b081f6a13 48
dflet 6:778b081f6a13 49 #define __inln /* if inline functions requiered: #define __inln inline */
dflet 6:778b081f6a13 50
dflet 6:778b081f6a13 51 #define SL_DEVICE /* Device silo is currently always mandatory */
dflet 6:778b081f6a13 52
dflet 6:778b081f6a13 53
dflet 6:778b081f6a13 54
dflet 6:778b081f6a13 55 /******************************************************************************
dflet 6:778b081f6a13 56
dflet 6:778b081f6a13 57 Qualifiers for package customizations
dflet 6:778b081f6a13 58
dflet 6:778b081f6a13 59 *******************************************************************************/
dflet 6:778b081f6a13 60
dflet 6:778b081f6a13 61 #if defined (SL_DEVICE)
dflet 6:778b081f6a13 62 #define __dev 1
dflet 6:778b081f6a13 63 #else
dflet 6:778b081f6a13 64 #define __dev 0
dflet 6:778b081f6a13 65 #endif
dflet 6:778b081f6a13 66
dflet 6:778b081f6a13 67 #if defined (SL_DEVICE) && defined (SL_INC_EXT_API)
dflet 6:778b081f6a13 68 #define __dev__ext 1
dflet 6:778b081f6a13 69 #else
dflet 6:778b081f6a13 70 #define __dev__ext 0
dflet 6:778b081f6a13 71 #endif
dflet 6:778b081f6a13 72
dflet 6:778b081f6a13 73
dflet 6:778b081f6a13 74 #if (!defined (SL_PLATFORM_MULTI_THREADED)) || (!defined (SL_PLATFORM_EXTERNAL_SPAWN))
dflet 6:778b081f6a13 75 #define __int__spwn 1
dflet 6:778b081f6a13 76 #else
dflet 6:778b081f6a13 77 #define __int__spwn 0
dflet 6:778b081f6a13 78 #endif
dflet 6:778b081f6a13 79
dflet 6:778b081f6a13 80 #if defined (SL_INC_NET_APP_PKG)
dflet 6:778b081f6a13 81 #define __nap 1
dflet 6:778b081f6a13 82 #else
dflet 6:778b081f6a13 83 #define __nap 0
dflet 6:778b081f6a13 84 #endif
dflet 6:778b081f6a13 85
dflet 6:778b081f6a13 86 #if defined (SL_INC_NET_APP_PKG) && defined (SL_INC_SOCK_CLIENT_SIDE_API)
dflet 6:778b081f6a13 87 #define __nap__clt 1
dflet 6:778b081f6a13 88 #else
dflet 6:778b081f6a13 89 #define __nap__clt 0
dflet 6:778b081f6a13 90 #endif
dflet 6:778b081f6a13 91
dflet 6:778b081f6a13 92 #if defined (SL_INC_NET_APP_PKG) && defined (SL_INC_EXT_API)
dflet 6:778b081f6a13 93 #define __nap__ext 1
dflet 6:778b081f6a13 94 #else
dflet 6:778b081f6a13 95 #define __nap__ext 0
dflet 6:778b081f6a13 96 #endif
dflet 6:778b081f6a13 97
dflet 6:778b081f6a13 98 #if defined (SL_INC_NET_CFG_PKG)
dflet 6:778b081f6a13 99 #define __ncg 1
dflet 6:778b081f6a13 100 #else
dflet 6:778b081f6a13 101 #define __ncg 0
dflet 6:778b081f6a13 102 #endif
dflet 6:778b081f6a13 103
dflet 6:778b081f6a13 104 #if defined (SL_INC_NET_CFG_PKG) && defined (SL_INC_EXT_API)
dflet 6:778b081f6a13 105 #define __ncg__ext 1
dflet 6:778b081f6a13 106 #else
dflet 6:778b081f6a13 107 #define __ncg__ext 0
dflet 6:778b081f6a13 108 #endif
dflet 6:778b081f6a13 109
dflet 6:778b081f6a13 110 #if defined (SL_INC_NVMEM_PKG)
dflet 6:778b081f6a13 111 #define __nvm 1
dflet 6:778b081f6a13 112 #else
dflet 6:778b081f6a13 113 #define __nvm 0
dflet 6:778b081f6a13 114 #endif
dflet 6:778b081f6a13 115
dflet 6:778b081f6a13 116 #if defined (SL_INC_SOCKET_PKG)
dflet 6:778b081f6a13 117 #define __sck 1
dflet 6:778b081f6a13 118 #else
dflet 6:778b081f6a13 119 #define __sck 0
dflet 6:778b081f6a13 120 #endif
dflet 6:778b081f6a13 121
dflet 6:778b081f6a13 122 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_EXT_API)
dflet 6:778b081f6a13 123 #define __sck__ext 1
dflet 6:778b081f6a13 124 #else
dflet 6:778b081f6a13 125 #define __sck__ext 0
dflet 6:778b081f6a13 126 #endif
dflet 6:778b081f6a13 127
dflet 6:778b081f6a13 128 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_SERVER_SIDE_API)
dflet 6:778b081f6a13 129 #define __sck__srv 1
dflet 6:778b081f6a13 130 #else
dflet 6:778b081f6a13 131 #define __sck__srv 0
dflet 6:778b081f6a13 132 #endif
dflet 6:778b081f6a13 133
dflet 6:778b081f6a13 134 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_CLIENT_SIDE_API)
dflet 6:778b081f6a13 135 #define __sck__clt 1
dflet 6:778b081f6a13 136 #else
dflet 6:778b081f6a13 137 #define __sck__clt 0
dflet 6:778b081f6a13 138 #endif
dflet 6:778b081f6a13 139
dflet 6:778b081f6a13 140 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_RECV_API)
dflet 6:778b081f6a13 141 #define __sck__rcv 1
dflet 6:778b081f6a13 142 #else
dflet 6:778b081f6a13 143 #define __sck__rcv 0
dflet 6:778b081f6a13 144 #endif
dflet 6:778b081f6a13 145
dflet 6:778b081f6a13 146 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_SEND_API)
dflet 6:778b081f6a13 147 #define __sck__snd 1
dflet 6:778b081f6a13 148 #else
dflet 6:778b081f6a13 149 #define __sck__snd 0
dflet 6:778b081f6a13 150 #endif
dflet 6:778b081f6a13 151
dflet 6:778b081f6a13 152 #if defined (SL_INC_WLAN_PKG)
dflet 6:778b081f6a13 153 #define __wln 1
dflet 6:778b081f6a13 154 #else
dflet 6:778b081f6a13 155 #define __wln 0
dflet 6:778b081f6a13 156 #endif
dflet 6:778b081f6a13 157
dflet 6:778b081f6a13 158 #if defined (SL_INC_WLAN_PKG) && defined (SL_INC_EXT_API)
dflet 6:778b081f6a13 159 #define __wln__ext 1
dflet 6:778b081f6a13 160 #else
dflet 6:778b081f6a13 161 #define __wln__ext 0
dflet 6:778b081f6a13 162 #endif
dflet 6:778b081f6a13 163
dflet 6:778b081f6a13 164 /* The return 1 is the function need to be included in the output */
dflet 6:778b081f6a13 165 #define _SL_INCLUDE_FUNC(Name) (_SL_INC_##Name)
dflet 6:778b081f6a13 166
dflet 6:778b081f6a13 167 /* Driver */
dflet 6:778b081f6a13 168 #define _SL_INC_sl_NetAppStart __nap__ext
dflet 6:778b081f6a13 169 #define _SL_INC_sl_NetAppStop __nap__ext
dflet 6:778b081f6a13 170
dflet 6:778b081f6a13 171 #define _SL_INC_sl_NetAppDnsGetHostByName __nap__clt
dflet 6:778b081f6a13 172
dflet 6:778b081f6a13 173
dflet 6:778b081f6a13 174 #define _SL_INC_sl_NetAppDnsGetHostByService __nap__ext
dflet 6:778b081f6a13 175 #define _SL_INC_sl_NetAppMDNSRegisterService __nap__ext
dflet 6:778b081f6a13 176 #define _SL_INC_sl_NetAppMDNSUnRegisterService __nap__ext
dflet 6:778b081f6a13 177 #define _SL_INC_sl_NetAppMDNSRegisterUnregisterService __nap__ext
dflet 6:778b081f6a13 178 #define _SL_INC_sl_NetAppGetServiceList __nap__ext
dflet 6:778b081f6a13 179
dflet 6:778b081f6a13 180
dflet 6:778b081f6a13 181 #define _SL_INC_sl_DnsGetHostByAddr __nap__ext
dflet 6:778b081f6a13 182 #define _SL_INC_sl_NetAppPingStart __nap__ext
dflet 6:778b081f6a13 183 #define _SL_INC_sl_NetAppPingReport __nap__ext
dflet 6:778b081f6a13 184 #define _SL_INC_sl_NetAppSet __nap__ext
dflet 6:778b081f6a13 185 #define _SL_INC_sl_NetAppGet __nap__ext
dflet 6:778b081f6a13 186
dflet 6:778b081f6a13 187 /* FS */
dflet 6:778b081f6a13 188 #define _SL_INC_sl_FsOpen __nvm
dflet 6:778b081f6a13 189
dflet 6:778b081f6a13 190 #define _SL_INC_sl_FsClose __nvm
dflet 6:778b081f6a13 191
dflet 6:778b081f6a13 192 #define _SL_INC_sl_FsRead __nvm
dflet 6:778b081f6a13 193
dflet 6:778b081f6a13 194 #define _SL_INC_sl_FsWrite __nvm
dflet 6:778b081f6a13 195
dflet 6:778b081f6a13 196 #define _SL_INC_sl_FsGetInfo __nvm
dflet 6:778b081f6a13 197
dflet 6:778b081f6a13 198 #define _SL_INC_sl_FsDel __nvm
dflet 6:778b081f6a13 199
dflet 6:778b081f6a13 200 /* netcfg */
dflet 6:778b081f6a13 201 #define _SL_INC_sl_MacAdrrSet __ncg
dflet 6:778b081f6a13 202
dflet 6:778b081f6a13 203 #define _SL_INC_sl_MacAdrrGet __ncg
dflet 6:778b081f6a13 204
dflet 6:778b081f6a13 205 #define _SL_INC_sl_NetCfgGet __ncg
dflet 6:778b081f6a13 206
dflet 6:778b081f6a13 207 #define _SL_INC_sl_NetCfgSet __ncg
dflet 6:778b081f6a13 208
dflet 6:778b081f6a13 209
dflet 6:778b081f6a13 210 /* socket */
dflet 6:778b081f6a13 211 #define _SL_INC_sl_Socket __sck
dflet 6:778b081f6a13 212
dflet 6:778b081f6a13 213 #define _SL_INC_sl_Close __sck
dflet 6:778b081f6a13 214
dflet 6:778b081f6a13 215 #define _SL_INC_sl_Accept __sck__srv
dflet 6:778b081f6a13 216
dflet 6:778b081f6a13 217 #define _SL_INC_sl_Bind __sck
dflet 6:778b081f6a13 218
dflet 6:778b081f6a13 219 #define _SL_INC_sl_Listen __sck__srv
dflet 6:778b081f6a13 220
dflet 6:778b081f6a13 221 #define _SL_INC_sl_Connect __sck__clt
dflet 6:778b081f6a13 222
dflet 6:778b081f6a13 223 #define _SL_INC_sl_Select __sck
dflet 6:778b081f6a13 224
dflet 6:778b081f6a13 225 #define _SL_INC_sl_SetSockOpt __sck
dflet 6:778b081f6a13 226
dflet 6:778b081f6a13 227 #define _SL_INC_sl_GetSockOpt __sck__ext
dflet 6:778b081f6a13 228
dflet 6:778b081f6a13 229 #define _SL_INC_sl_Recv __sck__rcv
dflet 6:778b081f6a13 230
dflet 6:778b081f6a13 231 #define _SL_INC_sl_RecvFrom __sck__rcv
dflet 6:778b081f6a13 232
dflet 6:778b081f6a13 233 #define _SL_INC_sl_Write __sck__snd
dflet 6:778b081f6a13 234
dflet 6:778b081f6a13 235 #define _SL_INC_sl_Send __sck__snd
dflet 6:778b081f6a13 236
dflet 6:778b081f6a13 237 #define _SL_INC_sl_SendTo __sck__snd
dflet 6:778b081f6a13 238
dflet 6:778b081f6a13 239 #define _SL_INC_sl_Htonl __sck
dflet 6:778b081f6a13 240
dflet 6:778b081f6a13 241 #define _SL_INC_sl_Htons __sck
dflet 6:778b081f6a13 242
dflet 6:778b081f6a13 243 /* wlan */
dflet 6:778b081f6a13 244 #define _SL_INC_sl_WlanConnect __wln__ext
dflet 6:778b081f6a13 245
dflet 6:778b081f6a13 246 #define _SL_INC_sl_WlanDisconnect __wln__ext
dflet 6:778b081f6a13 247
dflet 6:778b081f6a13 248 #define _SL_INC_sl_WlanProfileAdd __wln__ext
dflet 6:778b081f6a13 249
dflet 6:778b081f6a13 250 #define _SL_INC_sl_WlanProfileGet __wln__ext
dflet 6:778b081f6a13 251
dflet 6:778b081f6a13 252 #define _SL_INC_sl_WlanProfileDel __wln__ext
dflet 6:778b081f6a13 253
dflet 6:778b081f6a13 254 #define _SL_INC_sl_WlanPolicySet __wln__ext
dflet 6:778b081f6a13 255
dflet 6:778b081f6a13 256 #define _SL_INC_sl_WlanPolicyGet __wln__ext
dflet 6:778b081f6a13 257
dflet 6:778b081f6a13 258 #define _SL_INC_sl_WlanGetNetworkList __wln__ext
dflet 6:778b081f6a13 259
dflet 6:778b081f6a13 260 #define _SL_INC_sl_WlanRxFilterAdd __wln__ext
dflet 6:778b081f6a13 261
dflet 6:778b081f6a13 262 #define _SL_INC_sl_WlanRxFilterSet __wln__ext
dflet 6:778b081f6a13 263
dflet 6:778b081f6a13 264 #define _SL_INC_sl_WlanRxFilterGet __wln__ext
dflet 6:778b081f6a13 265
dflet 6:778b081f6a13 266 #define _SL_INC_sl_SmartConfigStart __wln
dflet 6:778b081f6a13 267
dflet 6:778b081f6a13 268 #define _SL_INC_sl_SmartConfigOptSet __wln__ext
dflet 6:778b081f6a13 269
dflet 6:778b081f6a13 270
dflet 6:778b081f6a13 271 #define _SL_INC_sl_WlanSmartConfigStart __wln
dflet 6:778b081f6a13 272
dflet 6:778b081f6a13 273 #define _SL_INC_sl_WlanSmartConfigStop __wln
dflet 6:778b081f6a13 274
dflet 6:778b081f6a13 275 #define _SL_INC_sl_WlanSetMode __wln
dflet 6:778b081f6a13 276
dflet 6:778b081f6a13 277 #define _SL_INC_sl_WlanSet __wln
dflet 6:778b081f6a13 278
dflet 6:778b081f6a13 279 #define _SL_INC_sl_WlanGet __wln
dflet 6:778b081f6a13 280
dflet 6:778b081f6a13 281 #define _SL_INC_sl_SmartConfigOptSet __wln__ext
dflet 6:778b081f6a13 282
dflet 6:778b081f6a13 283 #define _SL_INC_sl_SmartConfigOptGet __wln__ext
dflet 6:778b081f6a13 284
dflet 6:778b081f6a13 285 #define _SL_INC_sl_WlanRxStatStart __wln__ext
dflet 6:778b081f6a13 286
dflet 6:778b081f6a13 287 #define _SL_INC_sl_WlanRxStatStop __wln__ext
dflet 6:778b081f6a13 288
dflet 6:778b081f6a13 289 #define _SL_INC_sl_WlanRxStatGet __wln__ext
dflet 6:778b081f6a13 290
dflet 6:778b081f6a13 291
dflet 6:778b081f6a13 292 /* device */
dflet 6:778b081f6a13 293 #define _SL_INC_sl_Task __int__spwn
dflet 6:778b081f6a13 294
dflet 6:778b081f6a13 295 #define _SL_INC_sl_Start __dev
dflet 6:778b081f6a13 296
dflet 6:778b081f6a13 297 #define _SL_INC_sl_Stop __dev
dflet 6:778b081f6a13 298
dflet 6:778b081f6a13 299 #define _SL_INC_sl_StatusGet __dev
dflet 6:778b081f6a13 300
dflet 6:778b081f6a13 301 #ifdef SL_IF_TYPE_UART
dflet 6:778b081f6a13 302 #define _SL_INC_sl_UartSetMode __dev__ext
dflet 6:778b081f6a13 303 #endif
dflet 6:778b081f6a13 304
dflet 6:778b081f6a13 305 #define _SL_INC_sl_EventMaskGet __dev__ext
dflet 6:778b081f6a13 306
dflet 6:778b081f6a13 307 #define _SL_INC_sl_EventMaskSet __dev__ext
dflet 6:778b081f6a13 308
dflet 6:778b081f6a13 309 #define _SL_INC_sl_DevGet __dev__ext
dflet 6:778b081f6a13 310
dflet 6:778b081f6a13 311 #define _SL_INC_sl_DevSet __dev__ext
dflet 6:778b081f6a13 312
dflet 6:778b081f6a13 313 #endif /*OBJINCLUSION_H_ */
dflet 6:778b081f6a13 314