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 mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC176X/ethernet_api.c
- Revision:
- 19:398f4c622e1b
- Parent:
- 13:0645d8841f51
- Child:
- 212:34d62c0b2af6
diff -r 692be3d4e4cc -r 398f4c622e1b targets/hal/TARGET_NXP/TARGET_LPC176X/ethernet_api.c --- a/targets/hal/TARGET_NXP/TARGET_LPC176X/ethernet_api.c Mon Aug 12 13:49:01 2013 +0300 +++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/ethernet_api.c Mon Aug 19 18:17:02 2013 +0300 @@ -697,7 +697,7 @@ if(receive_idx == -1) { receive_idx = LPC_EMAC->RxConsumeIndex; } else { - while(!(rxstat[receive_idx].Info & RINFO_LAST_FLAG) && (receive_idx != LPC_EMAC->RxProduceIndex)) { + while(!(rxstat[receive_idx].Info & RINFO_LAST_FLAG) && ((uint32_t)receive_idx != LPC_EMAC->RxProduceIndex)) { receive_idx = rinc(receive_idx, NUM_RX_FRAG); } unsigned int info = rxstat[receive_idx].Info; @@ -713,7 +713,7 @@ LPC_EMAC->RxConsumeIndex = receive_idx; } - if(receive_idx == LPC_EMAC->RxProduceIndex) { + if((uint32_t)receive_idx == LPC_EMAC->RxProduceIndex) { receive_idx = -1; return 0; } @@ -762,7 +762,7 @@ void *pdst, *psrc; int doff = 0; - if(receive_idx == LPC_EMAC->RxProduceIndex || receive_idx == -1) { + if((uint32_t)receive_idx == LPC_EMAC->RxProduceIndex || receive_idx == -1) { return 0; }