Move #ifdef'd code from platform.h into target.h for each target.
Start to break up drv/system.c to avoid #ifdef.
Extract led and buzzer hardware initialisation from system.c.