NXP LPC1768 Ethernet driver for lwip and CMSIS-RTOS
Dependents: EthernetInterface EthernetInterface EthernetInterface_RSF EthernetInterface ... more
Legacy Networking Libraries
This is an mbed 2 networking library. For mbed 5, the networking libraries have been revised to better support additional network stacks and thread safety here.
This library is based on the code of the NXP LPC port of the Lightweight TCP/IP Stack
Copyright(C) 2011, NXP Semiconductor All rights reserved. Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.
Revision 28:72f8b097fbf3, committed 2015-08-13
- Comitter:
- mbed_official
- Date:
- Thu Aug 13 10:45:29 2015 +0100
- Parent:
- 27:fde88aaaea28
- Child:
- 29:4380f0749039
- Commit message:
- Synchronized with git revision 52618298c321b56081852a0077771437414ef481
Full URL: https://github.com/mbedmicro/mbed/commit/52618298c321b56081852a0077771437414ef481/
RZ_A1H - Add RZ_A1H in RPC. Modify communication problem of Ethernet.
Changed in this revision
arch/TARGET_RZ_A1H/rza1_emac.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/arch/TARGET_RZ_A1H/rza1_emac.c Mon Jun 15 07:15:45 2015 +0100 +++ b/arch/TARGET_RZ_A1H/rza1_emac.c Thu Aug 13 10:45:29 2015 +0100 @@ -24,17 +24,14 @@ struct eth_hdr *ethhdr; u16_t recv_size; struct pbuf *p; - struct pbuf *q; while (1) { sys_arch_sem_wait(&recv_ready_sem, 0); recv_size = ethernet_receive(); if (recv_size != 0) { - p = pbuf_alloc(PBUF_RAW, recv_size, PBUF_POOL); + p = pbuf_alloc(PBUF_RAW, recv_size, PBUF_RAM); if (p != NULL) { - for (q = p; q != NULL; q = q->next) { - (void)ethernet_read((char *)q->payload, q->len); - } + (void)ethernet_read((char *)p->payload, p->len); ethhdr = p->payload; switch (htons(ethhdr->type)) { case ETHTYPE_IP: