You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The builder methods (start and start_countdown) accept a variable called timeout, which must be convertible into Hertz. This does not make sense to me. A Countdown should "count down from X" where X is a time duration, not a frequency. This leads to non-sensical looking code like:
let frequency = timeout.into.0
Also, it means you loose A LOT of precision on the timer. You can no longer precisely control the timer delay in increments of cycles due to this division.
let ticks = self.clk.0 / frequency;
The text was updated successfully, but these errors were encountered:
The builder methods (start and start_countdown) accept a variable called timeout, which must be convertible into Hertz. This does not make sense to me. A Countdown should "count down from X" where X is a time duration, not a frequency. This leads to non-sensical looking code like:
let frequency = timeout.into.0
Also, it means you loose A LOT of precision on the timer. You can no longer precisely control the timer delay in increments of cycles due to this division.
let ticks = self.clk.0 / frequency;
The text was updated successfully, but these errors were encountered: