Home Alert System

Dependencies:   PWM_Tone_Library DHT

Committer:
aziz111
Date:
Fri Mar 08 17:15:02 2019 +0000
Revision:
5:569a4894abc1
Parent:
3:78f223d34f36
Final

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ethaderu 3:78f223d34f36 1 /* Copyright (C) 2012 mbed.org, MIT License
ethaderu 3:78f223d34f36 2 *
ethaderu 3:78f223d34f36 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ethaderu 3:78f223d34f36 4 * and associated documentation files (the "Software"), to deal in the Software without restriction,
ethaderu 3:78f223d34f36 5 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ethaderu 3:78f223d34f36 6 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ethaderu 3:78f223d34f36 7 * furnished to do so, subject to the following conditions:
ethaderu 3:78f223d34f36 8 *
ethaderu 3:78f223d34f36 9 * The above copyright notice and this permission notice shall be included in all copies or
ethaderu 3:78f223d34f36 10 * substantial portions of the Software.
ethaderu 3:78f223d34f36 11 *
ethaderu 3:78f223d34f36 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ethaderu 3:78f223d34f36 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ethaderu 3:78f223d34f36 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ethaderu 3:78f223d34f36 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ethaderu 3:78f223d34f36 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ethaderu 3:78f223d34f36 17 */
ethaderu 3:78f223d34f36 18
ethaderu 3:78f223d34f36 19 #ifndef LWIPOPTS_H
ethaderu 3:78f223d34f36 20 #define LWIPOPTS_H
ethaderu 3:78f223d34f36 21
ethaderu 3:78f223d34f36 22 #include "lwipopts_conf.h"
ethaderu 3:78f223d34f36 23
ethaderu 3:78f223d34f36 24 // Operating System
ethaderu 3:78f223d34f36 25 #define NO_SYS 0
ethaderu 3:78f223d34f36 26
ethaderu 3:78f223d34f36 27 #if NO_SYS == 0
ethaderu 3:78f223d34f36 28 #include "cmsis_os.h"
ethaderu 3:78f223d34f36 29
ethaderu 3:78f223d34f36 30 #define SYS_LIGHTWEIGHT_PROT 1
ethaderu 3:78f223d34f36 31
ethaderu 3:78f223d34f36 32 #define LWIP_RAW 0
ethaderu 3:78f223d34f36 33
ethaderu 3:78f223d34f36 34 #define TCPIP_MBOX_SIZE 8
ethaderu 3:78f223d34f36 35 #define DEFAULT_TCP_RECVMBOX_SIZE 8
ethaderu 3:78f223d34f36 36 #define DEFAULT_UDP_RECVMBOX_SIZE 8
ethaderu 3:78f223d34f36 37 #define DEFAULT_RAW_RECVMBOX_SIZE 8
ethaderu 3:78f223d34f36 38 #define DEFAULT_ACCEPTMBOX_SIZE 8
ethaderu 3:78f223d34f36 39
ethaderu 3:78f223d34f36 40 #define TCPIP_THREAD_STACKSIZE 1024
ethaderu 3:78f223d34f36 41 #define TCPIP_THREAD_PRIO (osPriorityNormal)
ethaderu 3:78f223d34f36 42
ethaderu 3:78f223d34f36 43 #define DEFAULT_THREAD_STACKSIZE 512
ethaderu 3:78f223d34f36 44
ethaderu 3:78f223d34f36 45 #define MEMP_NUM_SYS_TIMEOUT 16
ethaderu 3:78f223d34f36 46 #endif
ethaderu 3:78f223d34f36 47
ethaderu 3:78f223d34f36 48 // 32-bit alignment
ethaderu 3:78f223d34f36 49 #define MEM_ALIGNMENT 4
ethaderu 3:78f223d34f36 50
ethaderu 3:78f223d34f36 51 #define PBUF_POOL_SIZE 5
ethaderu 3:78f223d34f36 52 #define MEMP_NUM_TCP_PCB_LISTEN 4
ethaderu 3:78f223d34f36 53 #define MEMP_NUM_TCP_PCB 4
ethaderu 3:78f223d34f36 54 #define MEMP_NUM_PBUF 8
ethaderu 3:78f223d34f36 55
ethaderu 3:78f223d34f36 56 #define TCP_QUEUE_OOSEQ 0
ethaderu 3:78f223d34f36 57 #define TCP_OVERSIZE 0
ethaderu 3:78f223d34f36 58
ethaderu 3:78f223d34f36 59 #define LWIP_DHCP 1
ethaderu 3:78f223d34f36 60 #define LWIP_DNS 1
ethaderu 3:78f223d34f36 61
ethaderu 3:78f223d34f36 62 // Support Multicast
ethaderu 3:78f223d34f36 63 #include "stdlib.h"
ethaderu 3:78f223d34f36 64 #define LWIP_IGMP 1
ethaderu 3:78f223d34f36 65 #define LWIP_RAND() rand()
ethaderu 3:78f223d34f36 66
ethaderu 3:78f223d34f36 67 #define LWIP_COMPAT_SOCKETS 0
ethaderu 3:78f223d34f36 68 #define LWIP_POSIX_SOCKETS_IO_NAMES 0
ethaderu 3:78f223d34f36 69 #define LWIP_SO_RCVTIMEO 1
ethaderu 3:78f223d34f36 70 #define LWIP_TCP_KEEPALIVE 1
ethaderu 3:78f223d34f36 71
ethaderu 3:78f223d34f36 72 // Debug Options
ethaderu 3:78f223d34f36 73 // #define LWIP_DEBUG
ethaderu 3:78f223d34f36 74 #define UDP_LPC_EMAC LWIP_DBG_OFF
ethaderu 3:78f223d34f36 75 #define SYS_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 76 #define PPP_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 77 #define IP_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 78 #define MEM_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 79 #define MEMP_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 80 #define PBUF_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 81 #define API_LIB_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 82 #define API_MSG_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 83 #define TCPIP_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 84 #define SOCKETS_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 85 #define TCP_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 86 #define TCP_INPUT_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 87 #define TCP_FR_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 88 #define TCP_RTO_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 89 #define TCP_CWND_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 90 #define TCP_WND_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 91 #define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 92 #define TCP_RST_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 93 #define TCP_QLEN_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 94 #define ETHARP_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 95 #define NETIF_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 96 #define DHCP_DEBUG LWIP_DBG_OFF
ethaderu 3:78f223d34f36 97
ethaderu 3:78f223d34f36 98 #ifdef LWIP_DEBUG
ethaderu 3:78f223d34f36 99 #define MEMP_OVERFLOW_CHECK 1
ethaderu 3:78f223d34f36 100 #define MEMP_SANITY_CHECK 1
ethaderu 3:78f223d34f36 101 #else
ethaderu 3:78f223d34f36 102 #define LWIP_NOASSERT 1
ethaderu 3:78f223d34f36 103 #define LWIP_STATS 0
ethaderu 3:78f223d34f36 104 #endif
ethaderu 3:78f223d34f36 105
ethaderu 3:78f223d34f36 106 #define LWIP_PLATFORM_BYTESWAP 1
ethaderu 3:78f223d34f36 107
ethaderu 3:78f223d34f36 108 #if LWIP_TRANSPORT_ETHERNET
ethaderu 3:78f223d34f36 109
ethaderu 3:78f223d34f36 110 /* MSS should match the hardware packet size */
ethaderu 3:78f223d34f36 111 #define TCP_MSS 1460
ethaderu 3:78f223d34f36 112 #define TCP_SND_BUF (2 * TCP_MSS)
ethaderu 3:78f223d34f36 113 #define TCP_WND (2 * TCP_MSS)
ethaderu 3:78f223d34f36 114 #define TCP_SND_QUEUELEN (2 * TCP_SND_BUF/TCP_MSS)
ethaderu 3:78f223d34f36 115
ethaderu 3:78f223d34f36 116 // Broadcast
ethaderu 3:78f223d34f36 117 #define IP_SOF_BROADCAST 1
ethaderu 3:78f223d34f36 118 #define IP_SOF_BROADCAST_RECV 1
ethaderu 3:78f223d34f36 119
ethaderu 3:78f223d34f36 120 #define LWIP_BROADCAST_PING 1
ethaderu 3:78f223d34f36 121
ethaderu 3:78f223d34f36 122 #define LWIP_CHECKSUM_ON_COPY 1
ethaderu 3:78f223d34f36 123
ethaderu 3:78f223d34f36 124 #define LWIP_NETIF_HOSTNAME 1
ethaderu 3:78f223d34f36 125 #define LWIP_NETIF_STATUS_CALLBACK 1
ethaderu 3:78f223d34f36 126 #define LWIP_NETIF_LINK_CALLBACK 1
ethaderu 3:78f223d34f36 127
ethaderu 3:78f223d34f36 128 #elif LWIP_TRANSPORT_PPP
ethaderu 3:78f223d34f36 129
ethaderu 3:78f223d34f36 130 #define TCP_SND_BUF (3 * 536)
ethaderu 3:78f223d34f36 131 #define TCP_WND (2 * 536)
ethaderu 3:78f223d34f36 132
ethaderu 3:78f223d34f36 133 #define LWIP_ARP 0
ethaderu 3:78f223d34f36 134
ethaderu 3:78f223d34f36 135 #define PPP_SUPPORT 1
ethaderu 3:78f223d34f36 136 #define CHAP_SUPPORT 1
ethaderu 3:78f223d34f36 137 #define PAP_SUPPORT 1
ethaderu 3:78f223d34f36 138 #define PPP_THREAD_STACKSIZE 4*192
ethaderu 3:78f223d34f36 139 #define PPP_THREAD_PRIO 0
ethaderu 3:78f223d34f36 140
ethaderu 3:78f223d34f36 141 #define MAXNAMELEN 64 /* max length of hostname or name for auth */
ethaderu 3:78f223d34f36 142 #define MAXSECRETLEN 64
ethaderu 3:78f223d34f36 143
ethaderu 3:78f223d34f36 144 #else
ethaderu 3:78f223d34f36 145 #error A transport mechanism (Ethernet or PPP) must be defined
ethaderu 3:78f223d34f36 146 #endif
ethaderu 3:78f223d34f36 147
ethaderu 3:78f223d34f36 148 #endif /* LWIPOPTS_H_ */