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