Dependencies: DM_FATFileSystem EthernetInterface HTTPClient mbed-rtos mbed-src
Fork of DMSupport by
Diff: Memory/InternalEEPROM.cpp
- Revision:
- 29:b1ec19000e15
- Parent:
- 20:9df19da50290
- Child:
- 34:fc366bab393f
--- a/Memory/InternalEEPROM.cpp Fri Jan 23 17:31:56 2015 +0100 +++ b/Memory/InternalEEPROM.cpp Mon Jan 26 10:12:57 2015 +0100 @@ -81,7 +81,7 @@ clearInterrupt(EEPROM_INT_ENDOFRW); setAddr(pageAddr, pageOffset); setCmd(EEPROM_CMD_8BITS_READ | EEPROM_CMD_RDPREFETCH); - for (int i = 0; i < size; i++) { + for (uint32_t i = 0; i < size; i++) { buf[i] = LPC_EEPROM->RDATA & 0xff; waitForInterrupt(EEPROM_INT_ENDOFRW); } @@ -92,7 +92,7 @@ clearInterrupt(EEPROM_INT_ENDOFRW); setCmd(EEPROM_CMD_8BITS_WRITE); setAddr(pageAddr, pageOffset); - for (int i = 0; i < size; i++) { + for (uint32_t i = 0; i < size; i++) { LPC_EEPROM->WDATA = buf[i]; waitForInterrupt(EEPROM_INT_ENDOFRW); }