Build: Fix IAR build error and cleanup type mismatches

The IAR compiler does not accept pointer arithmetic on void *, so
cast pointer to uint8_t *.

Cleaned up a bunch of type mismatches, causing warnings with IAR.

Signed-off-by: TTornblom <thomas.tornblom@iar.com>
Change-Id: I9231de9be9d85d7431b31bfc524c281f28d6e665
3 files changed