HAL: add necessary functions for controlling the clock source
APICHANGE & NEW FIRMWARE 3.2: now enables support for external clocks.
setClockSource() has been renamed to setExternalClock(bool), Version
bumped.