enforces order of operations to prevent overflow
enforces order of operations to prevent overflow

also implicitly casts the division to a float in case
alarm_internal_frequency() returns a non-divisable number.
Cast back to uint32_t before setting the interval

tock/libtock-c,tock/libtock-c,tock/libtock-c