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 RTOS
  • generic mbed Ethernet driver
  • high performance NXP LPC1768 specific Ethernet driver
  • Multi-threading support for mbed RTOS
  • Berkeley sockets and integration with the New Socket API
  • Fork of the apps running on top of the New Socket API
  • Scheduling 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.

Committer:
tass picotcp@tass.be
Date:
Wed Apr 09 14:31:41 2014 +0200
Revision:
149:5f4cb161cec3
Parent:
131:4758606c9316
Child:
152:a3d286bf94e5
Update from git masterbranch

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tass 68:0847e35d08a6 1 /*********************************************************************
TASS Belgium NV 131:4758606c9316 2 PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved.
TASS Belgium NV 131:4758606c9316 3 See LICENSE and COPYING for usage.
tass 68:0847e35d08a6 4
TASS Belgium NV 131:4758606c9316 5 *********************************************************************/
tass picotcp@tass.be 149:5f4cb161cec3 6 #ifndef INCLUDE_PICO_DEVICE
tass picotcp@tass.be 149:5f4cb161cec3 7 #define INCLUDE_PICO_DEVICE
tass 68:0847e35d08a6 8 #include "pico_queue.h"
tass 68:0847e35d08a6 9 #include "pico_frame.h"
tass 68:0847e35d08a6 10 #include "pico_addressing.h"
tass 68:0847e35d08a6 11 #include "pico_tree.h"
tass picotcp@tass.be 149:5f4cb161cec3 12 #include "pico_ipv6_nd.h"
tass 68:0847e35d08a6 13 #define MAX_DEVICE_NAME 16
tass 68:0847e35d08a6 14
tass 68:0847e35d08a6 15
tass 68:0847e35d08a6 16 struct pico_ethdev {
TASS Belgium NV 131:4758606c9316 17 struct pico_eth mac;
tass 68:0847e35d08a6 18 };
tass 68:0847e35d08a6 19
tass 68:0847e35d08a6 20 struct pico_device {
TASS Belgium NV 131:4758606c9316 21 char name[MAX_DEVICE_NAME];
TASS Belgium NV 131:4758606c9316 22 uint32_t hash;
TASS Belgium NV 131:4758606c9316 23 uint32_t overhead;
TASS Belgium NV 131:4758606c9316 24 struct pico_ethdev *eth; /* Null if non-ethernet */
TASS Belgium NV 131:4758606c9316 25 struct pico_queue *q_in;
TASS Belgium NV 131:4758606c9316 26 struct pico_queue *q_out;
TASS Belgium NV 131:4758606c9316 27 int (*send)(struct pico_device *self, void *buf, int len); /* Send function. Return 0 if busy */
TASS Belgium NV 131:4758606c9316 28 int (*poll)(struct pico_device *self, int loop_score);
TASS Belgium NV 131:4758606c9316 29 void (*destroy)(struct pico_device *self);
TASS Belgium NV 131:4758606c9316 30 int (*dsr)(struct pico_device *self, int loop_score);
TASS Belgium NV 131:4758606c9316 31 int __serving_interrupt;
TASS Belgium NV 131:4758606c9316 32 /* used to signal the upper layer the number of events arrived since the last processing */
TASS Belgium NV 131:4758606c9316 33 volatile int eventCnt;
tass picotcp@tass.be 149:5f4cb161cec3 34 #ifdef PICO_SUPPORT_IPV6
tass picotcp@tass.be 149:5f4cb161cec3 35 struct pico_nd_hostvars hostvars;
tass picotcp@tass.be 149:5f4cb161cec3 36 #endif
tass 68:0847e35d08a6 37 };
tass 68:0847e35d08a6 38
tass 68:0847e35d08a6 39 int pico_device_init(struct pico_device *dev, const char *name, uint8_t *mac);
tass 68:0847e35d08a6 40 void pico_device_destroy(struct pico_device *dev);
tass 68:0847e35d08a6 41 int pico_devices_loop(int loop_score, int direction);
TASS Belgium NV 131:4758606c9316 42 struct pico_device*pico_get_device(const char*name);
TASS Belgium NV 131:4758606c9316 43 int32_t pico_device_broadcast(struct pico_frame *f);
tass 68:0847e35d08a6 44
tass 68:0847e35d08a6 45 #endif