lint: lpc1768/msp430: remove arith ops on void ptrs

Cleanup: cppcheck found arithmetic operations on void pointers which can result in undefined behaviour.

This patch fixes it by casting it to the appropriate type (which follows the same logic as i.e. for the cortex-mX or the atmega_common equivalents).