added real time clock, added timer and peripheral speed correction when sys speed changes, DO NOT USE THIS BUILD, this is a back commit only. Code doesn't not behave when speed is changed.