updates the at91 main_clock calculation