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 Belgium NV
Date:
Mon Dec 16 11:25:54 2013 +0100
Revision:
131:4758606c9316
Parent:
88:0e827d0d8017
Child:
149:5f4cb161cec3
Syncronized with master branch

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 Belgium NV 131:4758606c9316 6 #ifndef _INCLUDE_PICO_DEVICE
TASS Belgium NV 131:4758606c9316 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 68:0847e35d08a6 12 #define MAX_DEVICE_NAME 16
tass 68:0847e35d08a6 13
tass 68:0847e35d08a6 14
tass 68:0847e35d08a6 15 struct pico_ethdev {
TASS Belgium NV 131:4758606c9316 16 struct pico_eth mac;
tass 68:0847e35d08a6 17 };
tass 68:0847e35d08a6 18
tass 68:0847e35d08a6 19 struct pico_device {
TASS Belgium NV 131:4758606c9316 20 char name[MAX_DEVICE_NAME];
TASS Belgium NV 131:4758606c9316 21 uint32_t hash;
TASS Belgium NV 131:4758606c9316 22 uint32_t overhead;
TASS Belgium NV 131:4758606c9316 23 struct pico_ethdev *eth; /* Null if non-ethernet */
TASS Belgium NV 131:4758606c9316 24 struct pico_queue *q_in;
TASS Belgium NV 131:4758606c9316 25 struct pico_queue *q_out;
TASS Belgium NV 131:4758606c9316 26 int (*send)(struct pico_device *self, void *buf, int len); /* Send function. Return 0 if busy */
TASS Belgium NV 131:4758606c9316 27 int (*poll)(struct pico_device *self, int loop_score);
TASS Belgium NV 131:4758606c9316 28 void (*destroy)(struct pico_device *self);
TASS Belgium NV 131:4758606c9316 29 int (*dsr)(struct pico_device *self, int loop_score);
TASS Belgium NV 131:4758606c9316 30 int __serving_interrupt;
TASS Belgium NV 131:4758606c9316 31 /* used to signal the upper layer the number of events arrived since the last processing */
TASS Belgium NV 131:4758606c9316 32 volatile int eventCnt;
tass 68:0847e35d08a6 33 };
tass 68:0847e35d08a6 34
tass 68:0847e35d08a6 35 int pico_device_init(struct pico_device *dev, const char *name, uint8_t *mac);
tass 68:0847e35d08a6 36 void pico_device_destroy(struct pico_device *dev);
tass 68:0847e35d08a6 37 int pico_devices_loop(int loop_score, int direction);
TASS Belgium NV 131:4758606c9316 38 struct pico_device*pico_get_device(const char*name);
TASS Belgium NV 131:4758606c9316 39 int32_t pico_device_broadcast(struct pico_frame *f);
tass 68:0847e35d08a6 40
tass 68:0847e35d08a6 41 #endif