Derive clock and timer defines from frequency of external source.