Added some functions to configure the various clock sources.