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
Date:
Mon Oct 07 06:51:23 2013 +0000
Revision:
88:0e827d0d8017
Parent:
68:0847e35d08a6
Child:
131:4758606c9316
Update from masterbranch.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tass 68:0847e35d08a6 1 /*********************************************************************
tass 68:0847e35d08a6 2 PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved.
tass 68:0847e35d08a6 3 See LICENSE and COPYING for usage.
tass 68:0847e35d08a6 4
tass 68:0847e35d08a6 5 *********************************************************************/
tass 68:0847e35d08a6 6 #ifndef _INCLUDE_PICO_DEVICE
tass 68:0847e35d08a6 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 68:0847e35d08a6 16 struct pico_eth mac;
tass 68:0847e35d08a6 17 };
tass 68:0847e35d08a6 18
tass 68:0847e35d08a6 19 struct pico_device {
tass 68:0847e35d08a6 20 char name[MAX_DEVICE_NAME];
tass 68:0847e35d08a6 21 uint32_t hash;
tass 68:0847e35d08a6 22 uint32_t overhead;
tass 68:0847e35d08a6 23 struct pico_ethdev *eth; /* Null if non-ethernet */
tass 68:0847e35d08a6 24 struct pico_queue *q_in;
tass 68:0847e35d08a6 25 struct pico_queue *q_out;
tass 68:0847e35d08a6 26 int (*send)(struct pico_device *self, void *buf, int len); /* Send function. Return 0 if busy */
tass 68:0847e35d08a6 27 int (*poll)(struct pico_device *self, int loop_score);
tass 68:0847e35d08a6 28 void(*destroy)(struct pico_device *self);
tass 68:0847e35d08a6 29 int (*dsr)(struct pico_device *self, int loop_score);
tass 68:0847e35d08a6 30 int __serving_interrupt;
tass 68:0847e35d08a6 31 // used to signal the upper layer the number of events arrived since the last processing
tass 68:0847e35d08a6 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 68:0847e35d08a6 38 struct pico_device* pico_get_device(const char* name);
tass 88:0e827d0d8017 39 int32_t pico_device_broadcast(struct pico_frame * f);
tass 68:0847e35d08a6 40
tass 68:0847e35d08a6 41 #endif