TI's CC3100 websocket camera demo with Arducam mini ov5642 and freertos. Should work with other M3's. Work in progress test demo.
cc3100_objInclusion.h
00001 /* 00002 * objInclusion.h - CC31xx/CC32xx Host Driver Implementation 00003 * 00004 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ 00005 * 00006 * 00007 * Redistribution and use in source and binary forms, with or without 00008 * modification, are permitted provided that the following conditions 00009 * are met: 00010 * 00011 * Redistributions of source code must retain the above copyright 00012 * notice, this list of conditions and the following disclaimer. 00013 * 00014 * Redistributions in binary form must reproduce the above copyright 00015 * notice, this list of conditions and the following disclaimer in the 00016 * documentation and/or other materials provided with the 00017 * distribution. 00018 * 00019 * Neither the name of Texas Instruments Incorporated nor the names of 00020 * its contributors may be used to endorse or promote products derived 00021 * from this software without specific prior written permission. 00022 * 00023 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00024 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00025 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00026 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00027 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00028 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00029 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00030 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00031 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00032 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00033 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 * 00035 */ 00036 #ifndef OBJINCLUSION_H_ 00037 #define OBJINCLUSION_H_ 00038 00039 00040 #include "cc3100_simplelink.h" 00041 00042 00043 /****************************************************************************** 00044 00045 For future use 00046 00047 *******************************************************************************/ 00048 00049 #define __inln /* if inline functions requiered: #define __inln inline */ 00050 00051 #define SL_DEVICE /* Device silo is currently always mandatory */ 00052 00053 00054 00055 /****************************************************************************** 00056 00057 Qualifiers for package customizations 00058 00059 *******************************************************************************/ 00060 00061 #if defined (SL_DEVICE) 00062 #define __dev 1 00063 #else 00064 #define __dev 0 00065 #endif 00066 00067 #if defined (SL_DEVICE) && defined (SL_INC_EXT_API) 00068 #define __dev__ext 1 00069 #else 00070 #define __dev__ext 0 00071 #endif 00072 00073 00074 #if (!defined (SL_PLATFORM_MULTI_THREADED)) || (!defined (SL_PLATFORM_EXTERNAL_SPAWN)) 00075 #define __int__spwn 1 00076 #else 00077 #define __int__spwn 0 00078 #endif 00079 00080 #if defined (SL_INC_NET_APP_PKG) 00081 #define __nap 1 00082 #else 00083 #define __nap 0 00084 #endif 00085 00086 #if defined (SL_INC_NET_APP_PKG) && defined (SL_INC_SOCK_CLIENT_SIDE_API) 00087 #define __nap__clt 1 00088 #else 00089 #define __nap__clt 0 00090 #endif 00091 00092 #if defined (SL_INC_NET_APP_PKG) && defined (SL_INC_EXT_API) 00093 #define __nap__ext 1 00094 #else 00095 #define __nap__ext 0 00096 #endif 00097 00098 #if defined (SL_INC_NET_CFG_PKG) 00099 #define __ncg 1 00100 #else 00101 #define __ncg 0 00102 #endif 00103 00104 #if defined (SL_INC_NET_CFG_PKG) && defined (SL_INC_EXT_API) 00105 #define __ncg__ext 1 00106 #else 00107 #define __ncg__ext 0 00108 #endif 00109 00110 #if defined (SL_INC_NVMEM_PKG) 00111 #define __nvm 1 00112 #else 00113 #define __nvm 0 00114 #endif 00115 00116 #if defined (SL_INC_SOCKET_PKG) 00117 #define __sck 1 00118 #else 00119 #define __sck 0 00120 #endif 00121 00122 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_EXT_API) 00123 #define __sck__ext 1 00124 #else 00125 #define __sck__ext 0 00126 #endif 00127 00128 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_SERVER_SIDE_API) 00129 #define __sck__srv 1 00130 #else 00131 #define __sck__srv 0 00132 #endif 00133 00134 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_CLIENT_SIDE_API) 00135 #define __sck__clt 1 00136 #else 00137 #define __sck__clt 0 00138 #endif 00139 00140 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_RECV_API) 00141 #define __sck__rcv 1 00142 #else 00143 #define __sck__rcv 0 00144 #endif 00145 00146 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_SEND_API) 00147 #define __sck__snd 1 00148 #else 00149 #define __sck__snd 0 00150 #endif 00151 00152 #if defined (SL_INC_WLAN_PKG) 00153 #define __wln 1 00154 #else 00155 #define __wln 0 00156 #endif 00157 00158 #if defined (SL_INC_WLAN_PKG) && defined (SL_INC_EXT_API) 00159 #define __wln__ext 1 00160 #else 00161 #define __wln__ext 0 00162 #endif 00163 00164 /* The return 1 is the function need to be included in the output */ 00165 #define _SL_INCLUDE_FUNC(Name) (_SL_INC_##Name) 00166 00167 /* Driver */ 00168 #define _SL_INC_sl_NetAppStart __nap__ext 00169 #define _SL_INC_sl_NetAppStop __nap__ext 00170 00171 #define _SL_INC_sl_NetAppDnsGetHostByName __nap__clt 00172 00173 00174 #define _SL_INC_sl_NetAppDnsGetHostByService __nap__ext 00175 #define _SL_INC_sl_NetAppMDNSRegisterService __nap__ext 00176 #define _SL_INC_sl_NetAppMDNSUnRegisterService __nap__ext 00177 #define _SL_INC_sl_NetAppMDNSRegisterUnregisterService __nap__ext 00178 #define _SL_INC_sl_NetAppGetServiceList __nap__ext 00179 00180 00181 #define _SL_INC_sl_DnsGetHostByAddr __nap__ext 00182 #define _SL_INC_sl_NetAppPingStart __nap__ext 00183 #define _SL_INC_sl_NetAppPingReport __nap__ext 00184 #define _SL_INC_sl_NetAppSet __nap__ext 00185 #define _SL_INC_sl_NetAppGet __nap__ext 00186 00187 /* FS */ 00188 #define _SL_INC_sl_FsOpen __nvm 00189 00190 #define _SL_INC_sl_FsClose __nvm 00191 00192 #define _SL_INC_sl_FsRead __nvm 00193 00194 #define _SL_INC_sl_FsWrite __nvm 00195 00196 #define _SL_INC_sl_FsGetInfo __nvm 00197 00198 #define _SL_INC_sl_FsDel __nvm 00199 00200 /* netcfg */ 00201 #define _SL_INC_sl_MacAdrrSet __ncg 00202 00203 #define _SL_INC_sl_MacAdrrGet __ncg 00204 00205 #define _SL_INC_sl_NetCfgGet __ncg 00206 00207 #define _SL_INC_sl_NetCfgSet __ncg 00208 00209 00210 /* socket */ 00211 #define _SL_INC_sl_Socket __sck 00212 00213 #define _SL_INC_sl_Close __sck 00214 00215 #define _SL_INC_sl_Accept __sck__srv 00216 00217 #define _SL_INC_sl_Bind __sck 00218 00219 #define _SL_INC_sl_Listen __sck__srv 00220 00221 #define _SL_INC_sl_Connect __sck__clt 00222 00223 #define _SL_INC_sl_Select __sck 00224 00225 #define _SL_INC_sl_SetSockOpt __sck 00226 00227 #define _SL_INC_sl_GetSockOpt __sck__ext 00228 00229 #define _SL_INC_sl_Recv __sck__rcv 00230 00231 #define _SL_INC_sl_RecvFrom __sck__rcv 00232 00233 #define _SL_INC_sl_Write __sck__snd 00234 00235 #define _SL_INC_sl_Send __sck__snd 00236 00237 #define _SL_INC_sl_SendTo __sck__snd 00238 00239 #define _SL_INC_sl_Htonl __sck 00240 00241 #define _SL_INC_sl_Htons __sck 00242 00243 /* wlan */ 00244 #define _SL_INC_sl_WlanConnect __wln__ext 00245 00246 #define _SL_INC_sl_WlanDisconnect __wln__ext 00247 00248 #define _SL_INC_sl_WlanProfileAdd __wln__ext 00249 00250 #define _SL_INC_sl_WlanProfileGet __wln__ext 00251 00252 #define _SL_INC_sl_WlanProfileDel __wln__ext 00253 00254 #define _SL_INC_sl_WlanPolicySet __wln__ext 00255 00256 #define _SL_INC_sl_WlanPolicyGet __wln__ext 00257 00258 #define _SL_INC_sl_WlanGetNetworkList __wln__ext 00259 00260 #define _SL_INC_sl_WlanRxFilterAdd __wln__ext 00261 00262 #define _SL_INC_sl_WlanRxFilterSet __wln__ext 00263 00264 #define _SL_INC_sl_WlanRxFilterGet __wln__ext 00265 00266 #define _SL_INC_sl_SmartConfigStart __wln 00267 00268 #define _SL_INC_sl_SmartConfigOptSet __wln__ext 00269 00270 00271 #define _SL_INC_sl_WlanSmartConfigStart __wln 00272 00273 #define _SL_INC_sl_WlanSmartConfigStop __wln 00274 00275 #define _SL_INC_sl_WlanSetMode __wln 00276 00277 #define _SL_INC_sl_WlanSet __wln 00278 00279 #define _SL_INC_sl_WlanGet __wln 00280 00281 #define _SL_INC_sl_SmartConfigOptSet __wln__ext 00282 00283 #define _SL_INC_sl_SmartConfigOptGet __wln__ext 00284 00285 #define _SL_INC_sl_WlanRxStatStart __wln__ext 00286 00287 #define _SL_INC_sl_WlanRxStatStop __wln__ext 00288 00289 #define _SL_INC_sl_WlanRxStatGet __wln__ext 00290 00291 00292 /* device */ 00293 #define _SL_INC_sl_Task __int__spwn 00294 00295 #define _SL_INC_sl_Start __dev 00296 00297 #define _SL_INC_sl_Stop __dev 00298 00299 #define _SL_INC_sl_StatusGet __dev 00300 00301 #ifdef SL_IF_TYPE_UART 00302 #define _SL_INC_sl_UartSetMode __dev__ext 00303 #endif 00304 00305 #define _SL_INC_sl_EventMaskGet __dev__ext 00306 00307 #define _SL_INC_sl_EventMaskSet __dev__ext 00308 00309 #define _SL_INC_sl_DevGet __dev__ext 00310 00311 #define _SL_INC_sl_DevSet __dev__ext 00312 00313 #endif /*OBJINCLUSION_H_ */ 00314
Generated on Wed Jul 13 2022 15:58:45 by 1.7.2