The IAR compiler appears to provide more warnings about type
mismatches than the other compilers. This cleans a lot of them up.
Signed-off-by: TTornblom <thomas.tornblom@iar.com>
Cleaned out some non-standard C code, typeof() and using
"const" variables as constants.
Also added some initial IAR support.
Signed-off-by: TTornblom <thomas.tornblom@iar.com>