hal: Add system init functions

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>