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: stack/pico_tree.c
- Revision:
- 63:97f481e33cb2
- Parent:
- 51:ab4529a384a6
--- a/stack/pico_tree.c Mon Sep 16 12:07:35 2013 +0000 +++ b/stack/pico_tree.c Thu Sep 19 12:38:53 2013 +0000 @@ -7,7 +7,6 @@ #include "pico_tree.h" #include "pico_config.h" -#include "pico_protocol.h" #define RED 0 #define BLACK 1 @@ -111,15 +110,7 @@ if(LocalKey) return LocalKey; else - { insert = create_node(tree,key); - if(!insert) - { - pico_err = PICO_ERR_ENOMEM; - // to let the user know that it couldn't insert - return (void *)&LEAF; - } - } // search for the place to insert the new node while(IS_NOT_LEAF(temp)) @@ -234,9 +225,9 @@ else if(IS_LEAF(delete->rightChild)) { - struct pico_tree_node * _ltemp = delete; - temp = _ltemp->leftChild; - switchNodes(tree, _ltemp, _ltemp->leftChild); + struct pico_tree_node * ltemp = delete; + temp = ltemp->leftChild; + switchNodes(tree, ltemp, ltemp->leftChild); } else{ struct pico_tree_node * min; @@ -332,7 +323,6 @@ static struct pico_tree_node * create_node(struct pico_tree * tree, void* key) { struct pico_tree_node *temp; - IGNORE_PARAMETER(tree); temp = (struct pico_tree_node *)pico_zalloc(sizeof(struct pico_tree_node)); if(!temp) @@ -355,7 +345,7 @@ { struct pico_tree_node* temp; - while(node->parent->color == RED && IS_NOT_LEAF(GRANPA(node)) ) + while(node->parent->color == RED) { if(AM_I_RIGHT_CHILD(node->parent)) {