Converted u8_t to uint8_t and u16_t to uint16_t in the cpu directory.

This commit is contained in:
Nicholas J Humfrey 2012-02-20 18:42:51 +00:00 committed by Mariano Alvira
parent 372de7d08a
commit 1cda3da17e
46 changed files with 208 additions and 206 deletions

View file

@ -50,9 +50,9 @@ mef_load(unsigned char* offset)
{
unsigned char* start = offset;
unsigned char areasize = load_byte();
u16_t relocsize;
uint16_t relocsize;
unsigned int i, j;
u16_t checksum = 0;
uint16_t checksum = 0;
unsigned char* buf;
struct Relocation reloc;
@ -94,12 +94,12 @@ mef_reloc(unsigned char* offset, struct Relocation *reloc)
}
offset += reloc->address;
if (reloc->mode & MEF_RELOC_MSB_BYTE) {
*offset = (unsigned char) ((reloc->data + (u16_t) offset) >> 8);
*offset = (unsigned char) ((reloc->data + (uint16_t) offset) >> 8);
} else if (reloc->mode & MEF_RELOC_LSB_BYTE) {
*offset = (unsigned char) ((reloc->data + (u16_t) offset) & 0xff);
*offset = (unsigned char) ((reloc->data + (uint16_t) offset) & 0xff);
} else { /* word */
*offset++ = (unsigned char) ((reloc->data + (u16_t) offset) & 0xff);
*offset = (unsigned char) ((reloc->data + (u16_t) offset) >> 8);
*offset++ = (unsigned char) ((reloc->data + (uint16_t) offset) & 0xff);
*offset = (unsigned char) ((reloc->data + (uint16_t) offset) >> 8);
}
}