These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Committer:
frank26080115
Date:
Sun Mar 20 05:38:56 2011 +0000
Revision:
0:bf7b9fba3924

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frank26080115 0:bf7b9fba3924 1 /**
frank26080115 0:bf7b9fba3924 2 * \addtogroup uipopt
frank26080115 0:bf7b9fba3924 3 * @{
frank26080115 0:bf7b9fba3924 4 */
frank26080115 0:bf7b9fba3924 5
frank26080115 0:bf7b9fba3924 6 /**
frank26080115 0:bf7b9fba3924 7 * \name Project-specific configuration options
frank26080115 0:bf7b9fba3924 8 * @{
frank26080115 0:bf7b9fba3924 9 *
frank26080115 0:bf7b9fba3924 10 * uIP has a number of configuration options that can be overridden
frank26080115 0:bf7b9fba3924 11 * for each project. These are kept in a project-specific uip-conf.h
frank26080115 0:bf7b9fba3924 12 * file and all configuration names have the prefix UIP_CONF.
frank26080115 0:bf7b9fba3924 13 */
frank26080115 0:bf7b9fba3924 14
frank26080115 0:bf7b9fba3924 15 /*
frank26080115 0:bf7b9fba3924 16 * Copyright (c) 2006, Swedish Institute of Computer Science.
frank26080115 0:bf7b9fba3924 17 * All rights reserved.
frank26080115 0:bf7b9fba3924 18 *
frank26080115 0:bf7b9fba3924 19 * Redistribution and use in source and binary forms, with or without
frank26080115 0:bf7b9fba3924 20 * modification, are permitted provided that the following conditions
frank26080115 0:bf7b9fba3924 21 * are met:
frank26080115 0:bf7b9fba3924 22 * 1. Redistributions of source code must retain the above copyright
frank26080115 0:bf7b9fba3924 23 * notice, this list of conditions and the following disclaimer.
frank26080115 0:bf7b9fba3924 24 * 2. Redistributions in binary form must reproduce the above copyright
frank26080115 0:bf7b9fba3924 25 * notice, this list of conditions and the following disclaimer in the
frank26080115 0:bf7b9fba3924 26 * documentation and/or other materials provided with the distribution.
frank26080115 0:bf7b9fba3924 27 * 3. Neither the name of the Institute nor the names of its contributors
frank26080115 0:bf7b9fba3924 28 * may be used to endorse or promote products derived from this software
frank26080115 0:bf7b9fba3924 29 * without specific prior written permission.
frank26080115 0:bf7b9fba3924 30 *
frank26080115 0:bf7b9fba3924 31 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
frank26080115 0:bf7b9fba3924 32 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
frank26080115 0:bf7b9fba3924 33 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
frank26080115 0:bf7b9fba3924 34 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
frank26080115 0:bf7b9fba3924 35 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
frank26080115 0:bf7b9fba3924 36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
frank26080115 0:bf7b9fba3924 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
frank26080115 0:bf7b9fba3924 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
frank26080115 0:bf7b9fba3924 39 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
frank26080115 0:bf7b9fba3924 40 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
frank26080115 0:bf7b9fba3924 41 * SUCH DAMAGE.
frank26080115 0:bf7b9fba3924 42 *
frank26080115 0:bf7b9fba3924 43 * This file is part of the uIP TCP/IP stack
frank26080115 0:bf7b9fba3924 44 *
frank26080115 0:bf7b9fba3924 45 * $Id: uip-conf.h 18137 2007-09-17 14:43:16Z anderslu $
frank26080115 0:bf7b9fba3924 46 */
frank26080115 0:bf7b9fba3924 47
frank26080115 0:bf7b9fba3924 48 /**
frank26080115 0:bf7b9fba3924 49 * \file
frank26080115 0:bf7b9fba3924 50 * An example uIP configuration file
frank26080115 0:bf7b9fba3924 51 * \author
frank26080115 0:bf7b9fba3924 52 * Adam Dunkels <adam@sics.se>
frank26080115 0:bf7b9fba3924 53 */
frank26080115 0:bf7b9fba3924 54
frank26080115 0:bf7b9fba3924 55 #ifndef __UIP_CONF_H__
frank26080115 0:bf7b9fba3924 56 #define __UIP_CONF_H__
frank26080115 0:bf7b9fba3924 57
frank26080115 0:bf7b9fba3924 58 #include <inttypes.h>
frank26080115 0:bf7b9fba3924 59
frank26080115 0:bf7b9fba3924 60 /**
frank26080115 0:bf7b9fba3924 61 * 8 bit datatype
frank26080115 0:bf7b9fba3924 62 *
frank26080115 0:bf7b9fba3924 63 * This typedef defines the 8-bit type used throughout uIP.
frank26080115 0:bf7b9fba3924 64 *
frank26080115 0:bf7b9fba3924 65 * \hideinitializer
frank26080115 0:bf7b9fba3924 66 */
frank26080115 0:bf7b9fba3924 67 typedef uint8_t u8_t;
frank26080115 0:bf7b9fba3924 68
frank26080115 0:bf7b9fba3924 69 /**
frank26080115 0:bf7b9fba3924 70 * 16 bit datatype
frank26080115 0:bf7b9fba3924 71 *
frank26080115 0:bf7b9fba3924 72 * This typedef defines the 16-bit type used throughout uIP.
frank26080115 0:bf7b9fba3924 73 *
frank26080115 0:bf7b9fba3924 74 * \hideinitializer
frank26080115 0:bf7b9fba3924 75 */
frank26080115 0:bf7b9fba3924 76 typedef uint16_t u16_t;
frank26080115 0:bf7b9fba3924 77
frank26080115 0:bf7b9fba3924 78 /**
frank26080115 0:bf7b9fba3924 79 * Statistics datatype
frank26080115 0:bf7b9fba3924 80 *
frank26080115 0:bf7b9fba3924 81 * This typedef defines the dataype used for keeping statistics in
frank26080115 0:bf7b9fba3924 82 * uIP.
frank26080115 0:bf7b9fba3924 83 *
frank26080115 0:bf7b9fba3924 84 * \hideinitializer
frank26080115 0:bf7b9fba3924 85 */
frank26080115 0:bf7b9fba3924 86 typedef unsigned short uip_stats_t;
frank26080115 0:bf7b9fba3924 87
frank26080115 0:bf7b9fba3924 88 /**
frank26080115 0:bf7b9fba3924 89 * Maximum number of TCP connections.
frank26080115 0:bf7b9fba3924 90 *
frank26080115 0:bf7b9fba3924 91 * \hideinitializer
frank26080115 0:bf7b9fba3924 92 */
frank26080115 0:bf7b9fba3924 93 #define UIP_CONF_MAX_CONNECTIONS 40
frank26080115 0:bf7b9fba3924 94
frank26080115 0:bf7b9fba3924 95 /**
frank26080115 0:bf7b9fba3924 96 * Maximum number of listening TCP ports.
frank26080115 0:bf7b9fba3924 97 *
frank26080115 0:bf7b9fba3924 98 * \hideinitializer
frank26080115 0:bf7b9fba3924 99 */
frank26080115 0:bf7b9fba3924 100 #define UIP_CONF_MAX_LISTENPORTS 40
frank26080115 0:bf7b9fba3924 101
frank26080115 0:bf7b9fba3924 102 /**
frank26080115 0:bf7b9fba3924 103 * uIP buffer size.
frank26080115 0:bf7b9fba3924 104 *
frank26080115 0:bf7b9fba3924 105 * \hideinitializer
frank26080115 0:bf7b9fba3924 106 */
frank26080115 0:bf7b9fba3924 107 #define UIP_CONF_BUFFER_SIZE 1520
frank26080115 0:bf7b9fba3924 108
frank26080115 0:bf7b9fba3924 109 /**
frank26080115 0:bf7b9fba3924 110 * CPU byte order.
frank26080115 0:bf7b9fba3924 111 *
frank26080115 0:bf7b9fba3924 112 * \hideinitializer
frank26080115 0:bf7b9fba3924 113 */
frank26080115 0:bf7b9fba3924 114 #define UIP_CONF_BYTE_ORDER LITTLE_ENDIAN
frank26080115 0:bf7b9fba3924 115
frank26080115 0:bf7b9fba3924 116 /**
frank26080115 0:bf7b9fba3924 117 * Logging on or off
frank26080115 0:bf7b9fba3924 118 *
frank26080115 0:bf7b9fba3924 119 * \hideinitializer
frank26080115 0:bf7b9fba3924 120 */
frank26080115 0:bf7b9fba3924 121 #define UIP_CONF_LOGGING 1
frank26080115 0:bf7b9fba3924 122
frank26080115 0:bf7b9fba3924 123 /**
frank26080115 0:bf7b9fba3924 124 * UDP support on or off
frank26080115 0:bf7b9fba3924 125 *
frank26080115 0:bf7b9fba3924 126 * \hideinitializer
frank26080115 0:bf7b9fba3924 127 */
frank26080115 0:bf7b9fba3924 128 #define UIP_CONF_UDP 0
frank26080115 0:bf7b9fba3924 129
frank26080115 0:bf7b9fba3924 130 /**
frank26080115 0:bf7b9fba3924 131 * UDP checksums on or off
frank26080115 0:bf7b9fba3924 132 *
frank26080115 0:bf7b9fba3924 133 * \hideinitializer
frank26080115 0:bf7b9fba3924 134 */
frank26080115 0:bf7b9fba3924 135 #define UIP_CONF_UDP_CHECKSUMS 1
frank26080115 0:bf7b9fba3924 136
frank26080115 0:bf7b9fba3924 137 /**
frank26080115 0:bf7b9fba3924 138 * uIP statistics on or off
frank26080115 0:bf7b9fba3924 139 *
frank26080115 0:bf7b9fba3924 140 * \hideinitializer
frank26080115 0:bf7b9fba3924 141 */
frank26080115 0:bf7b9fba3924 142 #define UIP_CONF_STATISTICS 1
frank26080115 0:bf7b9fba3924 143
frank26080115 0:bf7b9fba3924 144 /* Here we include the header file for the application(s) we use in
frank26080115 0:bf7b9fba3924 145 our project. */
frank26080115 0:bf7b9fba3924 146 /*#include "smtp.h"*/
frank26080115 0:bf7b9fba3924 147 //#include "hello-world.h"
frank26080115 0:bf7b9fba3924 148 /*#include "telnetd.h"*/
frank26080115 0:bf7b9fba3924 149 #include "webserver.h"
frank26080115 0:bf7b9fba3924 150 /*#include "dhcpc.h"*/
frank26080115 0:bf7b9fba3924 151 /*#include "resolv.h"*/
frank26080115 0:bf7b9fba3924 152 /*#include "webclient.h"*/
frank26080115 0:bf7b9fba3924 153
frank26080115 0:bf7b9fba3924 154 #endif /* __UIP_CONF_H__ */
frank26080115 0:bf7b9fba3924 155
frank26080115 0:bf7b9fba3924 156 /** @} */
frank26080115 0:bf7b9fba3924 157 /** @} */