Free (GPLv2) TCP/IP stack developed by TASS Belgium
Dependents: lpc1768-picotcp-demo ZeroMQ_PicoTCP_Publisher_demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test ... more
PicoTCP. Copyright (c) 2013 TASS Belgium NV.
Released under the GNU General Public License, version 2.
Different licensing models may exist, at the sole discretion of the Copyright holders.
Official homepage: http://www.picotcp.com
Bug tracker: https://github.com/tass-belgium/picotcp/issues
Development steps:
initial integration with mbed RTOSgeneric mbed Ethernet driverhigh performance NXP LPC1768 specific Ethernet driverMulti-threading support for mbed RTOSBerkeley sockets and integration with the New Socket APIFork of the apps running on top of the New Socket APIScheduling optimizations- Debugging/benchmarking/testing
Demo application (measuring TCP sender performance):
Import programlpc1768-picotcp-demo
A PicoTCP demo app testing the ethernet throughput on the lpc1768 mbed board.
include/pico_constants.h
- Committer:
- tass
- Date:
- 2016-01-28
- Revision:
- 155:a70f34550c34
- Parent:
- 152:a3d286bf94e5
File content as of revision 155:a70f34550c34:
/********************************************************************* PicoTCP. Copyright (c) 2012-2015 Altran Intelligent Systems. Some rights reserved. See LICENSE and COPYING for usage. *********************************************************************/ #ifndef INCLUDE_PICO_CONST #define INCLUDE_PICO_CONST /* Included from pico_config.h */ /** Non-endian dependant constants */ #define PICO_SIZE_IP4 4 #define PICO_SIZE_IP6 16 #define PICO_SIZE_ETH 6 #define PICO_SIZE_TRANS 8 /** Endian-dependant constants **/ typedef uint64_t pico_time; extern volatile uint64_t pico_tick; /*** *** *** *** *** *** *** *** ARP CONFIG *** *** *** *** *** *** *** ***/ #include "pico_addressing.h" /* Maximum amount of accepted ARP requests per burst interval */ #define PICO_ARP_MAX_RATE 1 /* Duration of the burst interval in milliseconds */ #define PICO_ARP_INTERVAL 1000 /* Add well-known host numbers here. (bigendian constants only beyond this point) */ #define PICO_IP4_ANY (0x00000000U) #define PICO_IP4_BCAST (0xffffffffU) /* defined in modules/pico_ipv6.c */ #ifdef PICO_SUPPORT_IPV6 extern const uint8_t PICO_IPV6_ANY[PICO_SIZE_IP6]; #endif static inline uint32_t pico_hash(const void *buf, uint32_t size) { uint32_t hash = 5381; uint32_t i; const uint8_t *ptr = (const uint8_t *)buf; for(i = 0; i < size; i++) hash = ((hash << 5) + hash) + ptr[i]; /* hash * 33 + char */ return hash; } /* Debug */ /* #define PICO_SUPPORT_DEBUG_MEMORY */ /* #define PICO_SUPPORT_DEBUG_TOOLS */ #endif