A Port of TI's Webserver for the CC3000
Embed:
(wiki syntax)
Show/hide line numbers
Common.h
00001 /***************************************************************************** 00002 * 00003 * Common.h 00004 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 00010 * Redistributions of source code must retain the above copyright 00011 * notice, this list of conditions and the following disclaimer. 00012 * 00013 * Redistributions in binary form must reproduce the above copyright 00014 * notice, this list of conditions and the following disclaimer in the 00015 * documentation and/or other materials provided with the 00016 * distribution. 00017 * 00018 * Neither the name of Texas Instruments Incorporated nor the names of 00019 * its contributors may be used to endorse or promote products derived 00020 * from this software without specific prior written permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00023 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00024 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00025 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00026 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00027 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00028 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00029 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00030 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00031 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00032 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00033 * 00034 *****************************************************************************/ 00035 #ifndef _TINY_WEB_SERVER_COMMON_H_ 00036 #define _TINY_WEB_SERVER_COMMON_H_ 00037 00038 typedef unsigned char uint8; 00039 typedef unsigned short uint16; 00040 typedef short int16; 00041 typedef unsigned long uint32; 00042 00043 //#define HTTP_WEB_SERVER_ON_BRIDGE 00044 00045 #ifndef NULL 00046 #define NULL 0 00047 #endif 00048 00049 #ifndef __IAR_SYSTEMS_ICC__ 00050 #define __no_init 00051 #endif 00052 00053 #ifdef WIN32 00054 typedef int socklen_t; 00055 #endif //WIN32 00056 00057 #if !defined(WIN32) || defined(HTTP_WEB_SERVER_ON_BRIDGE) 00058 #define _TIME_T_DEFINED 00059 #define SOCKET long 00060 #define INVALID_SOCKET (-1) 00061 #endif //WIN32 00062 00063 #define CC3000_INVALID_SOCKET ((SOCKET)-2) 00064 00065 #define FALSE 0 00066 #define TRUE 1 00067 00068 00069 #define ESUCCESS 0 00070 #define SMART_CONFIG_SET 0xAA 00071 00072 00073 #endif //_TINY_WEB_SERVER_COMMON_H_ 00074
Generated on Wed Jul 13 2022 13:30:51 by
1.7.2