Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lwip-eth by
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:
