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.
Diff: include/pico_frame.h
- Revision:
- 149:5f4cb161cec3
- Parent:
- 131:4758606c9316
- Child:
- 152:a3d286bf94e5
--- a/include/pico_frame.h Tue Mar 11 15:34:51 2014 +0100 +++ b/include/pico_frame.h Wed Apr 09 14:31:41 2014 +0200 @@ -3,8 +3,8 @@ See LICENSE and COPYING for usage. *********************************************************************/ -#ifndef _INCLUDE_PICO_FRAME -#define _INCLUDE_PICO_FRAME +#ifndef INCLUDE_PICO_FRAME +#define INCLUDE_PICO_FRAME #include "pico_config.h" @@ -70,7 +70,7 @@ /* Pointer to socket */ struct pico_socket *sock; - /* Pointer to transport info, used to store remote UDP duple (IP + port) */ + /* Pointer to transport info, used to store remote UDP endpoint (IP + port) */ void *info; /*Priority. "best-effort" priority, the default value is 0. Priority can be in between -10 and +10*/ @@ -83,6 +83,8 @@ struct pico_frame *pico_frame_copy(struct pico_frame *f); struct pico_frame *pico_frame_deepcopy(struct pico_frame *f); struct pico_frame *pico_frame_alloc(uint32_t size); +struct pico_frame *pico_frame_alloc_skeleton(uint32_t size); +int pico_frame_skeleton_set_buffer(struct pico_frame *f, void *buf); uint16_t pico_checksum(void *inbuf, uint32_t len); uint16_t pico_dualbuffer_checksum(void *b1, uint32_t len1, void *b2, uint32_t len2); @@ -94,4 +96,18 @@ return 1; } +static inline int pico_is_hex(char c) +{ + if (c >= '0' && c <= '9') + return 1; + + if (c >= 'a' && c <= 'f') + return 1; + + if (c >= 'A' && c <= 'F') + return 1; + + return 0; +} + #endif