SimpleLink Host Driver  0.0.5.1
 All Data Structures Functions Variables Groups
user.h
1 /******************************************************************************
2  * user.h - CC31xx/CC32xx Host Driver Implementation
3  *
4  * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
5  *
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  *
14  * Redistributions in binary form must reproduce the above copyright
15  * notice, this list of conditions and the following disclaimer in the
16  * documentation and/or other materials provided with the
17  * distribution.
18  *
19  * Neither the name of Texas Instruments Incorporated nor the names of
20  * its contributors may be used to endorse or promote products derived
21  * from this software without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34  *
35 */
17 #ifndef __USER_H__
18 #define __USER_H__
19 
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 
63 #define MAX_CONCURRENT_ACTIONS 10
64 
105 #define SL_INC_ARG_CHECK
106 
107 
127 /*
128 #define SL_INC_STD_BSD_API_NAMING
129 */
130 
144 #define SL_INC_EXT_API
145 
159 #define SL_INC_WLAN_PKG
160 
174 #define SL_INC_SOCKET_PKG
175 
189 #define SL_INC_NET_APP_PKG
190 
204 #define SL_INC_NET_CFG_PKG
205 
219 #define SL_INC_NVMEM_PKG
220 
234 #define SL_INC_SOCK_SERVER_SIDE_API
235 
249 #define SL_INC_SOCK_CLIENT_SIDE_API
250 
264 #define SL_INC_SOCK_RECV_API
265 
279 #define SL_INC_SOCK_SEND_API
280 
325 #define sl_DeviceEnable()
326 
339 #define sl_DeviceDisable()
340 
372 #define _SlFd_t
373 
407 #define sl_IfOpen
408 
426 #define sl_IfClose
427 
452 #define sl_IfRead
453 
482 #define sl_IfWrite
483 
507 #define sl_IfRegIntHdlr(InterruptHdl , pValue)
508 
520 #define sl_IfMaskIntHdlr()
521 
534 #define sl_IfUnMaskIntHdlr()
535 
552 #define SL_START_WRITE_STAT
553 
554 #ifdef SL_START_WRITE_STAT
555 #define sl_IfStartWriteSequence
556 #define sl_IfEndWriteSequence
557 #endif
558 
601 /*
602 #define SL_MEMORY_MGMT_DYNAMIC
603 */
604 
605 #ifdef SL_MEMORY_MGMT_DYNAMIC
606 
616 #define sl_Malloc(Size) malloc(Size)
617 
627 #define sl_Free(pMem) free(pMem)
628 
629 #endif
630 
665 #define SL_PLATFORM_MULTI_THREADED
666 
667 #ifdef SL_PLATFORM_MULTI_THREADED
668 
675 #define SL_OS_RET_CODE_OK ((int)OSI_OK)
676 
683 #define SL_OS_WAIT_FOREVER ((OsiTime_t)OSI_WAIT_FOREVER)
684 
691 #define SL_OS_NO_WAIT ((OsiTime_t)OSI_NO_WAIT)
692 
700 #define _SlTime_t OsiTime_t
701 
715 #define _SlSyncObj_t OsiSyncObj_t
716 
717 
732 #define sl_SyncObjCreate(pSyncObj,pName)
733 
734 
745 #define sl_SyncObjDelete(pSyncObj)
746 
747 
760 #define sl_SyncObjSignal(pSyncObj)
761 
774 #define sl_SyncObjSignalFromIRQ(pSyncObj)
775 
790 #define sl_SyncObjWait(pSyncObj,Timeout)
791 
802 #define _SlLockObj_t OsiLockObj_t
803 
817 #define sl_LockObjCreate(pLockObj,pName)
818 
829 #define sl_LockObjDelete(pLockObj)
830 
850 #define sl_LockObjLock(pLockObj,Timeout)
851 
862 #define sl_LockObjUnlock(pLockObj)
863 
864 #endif
865 
882 #define SL_PLATFORM_EXTERNAL_SPAWN
883 
884 #ifdef SL_PLATFORM_EXTERNAL_SPAWN
885 #define sl_Spawn(pEntry,pValue,flags)
886 #endif
887 
921 /*
922 #define sl_GeneralEvtHdlr
923 */
924 
937 #define sl_WlanEvtHdlr
938 
952 #define sl_NetAppEvtHdlr
953 
971 #define sl_HttpServerCallback
972 
982 /*
983 #define sl_SockEvtHdlr
984 */
985 
986 
995 #ifdef __cplusplus
996 }
997 #endif // __cplusplus
998 
999 #endif // __USER_H__
1000