mbed support for LPC4088 Display Module
Dependencies: DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos mbed-src
Fork of DMSupport by
Diff: Bios/BiosLoader.cpp
- Revision:
- 29:b1ec19000e15
- Parent:
- 28:8ae20cb0b943
- Child:
- 31:d47cffcb0a3e
--- a/Bios/BiosLoader.cpp Fri Jan 23 17:31:56 2015 +0100 +++ b/Bios/BiosLoader.cpp Mon Jan 26 10:12:57 2015 +0100 @@ -225,7 +225,7 @@ uint8_t* p = NULL; uint32_t size = 0; err = readBIOS(&p, &size); - if (err != BiosError_Ok) { + if (err != DMBoard::Ok) { break; } @@ -257,7 +257,7 @@ // 2) The header size (the code/data comes after it) uint32_t offset = ((uint32_t)p) + file_header->headerSize; uint32_t* functions = (uint32_t*)&_bios; - for (int i = 0; i < (sizeof(bios_header_t)/sizeof(uint32_t)); i++) { + for (uint32_t i = 0; i < (sizeof(bios_header_t)/sizeof(uint32_t)); i++) { functions[i] += offset; }