time: Revise state abstraction
Make abstract state `State` of HW.Time.Timer, that's used to derive the
Hz value for instance, External. This helps to fix flow issues in the
mutime implementation and also matches real hardware better: The clock
rate may be derived from the hardware state.
HW.Time.Timer.Hz had to be made a volatile function, therefore.
Signed-off-by: Nico Huber <email@example.com>
Tested-by: Nico Huber <firstname.lastname@example.org>
Reviewed-by: Reto Buerki <email@example.com>
3 files changed