uip-conf.h 3.6 KB

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