added function to generate calibrated 32MHz clock

added utility function that uses the 32kHz crystal oscillator to
calibrate the 32MHz internal RC oscillator and then uses this calibrated
output as system clock.
changed Node and Base station code to call this function instead of the
old one