diff options
| author | robert-hh <robert@hammelrath.com> | 2023-06-17 16:07:58 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-09-02 17:09:51 +1000 |
| commit | 9f1576f2ade989d10c9504450f69779d48f9674c (patch) | |
| tree | 020ed6d647a969564b45a107decdb6d4c2d4899a /py/objfun.c | |
| parent | 6aa404ca53e3ebd1f234a8d62259a1e660a4132c (diff) | |
rp2/machine_timer: Fix printing of timer period.
Showing the period alway as microsecond quantities, since tick_hz is
assumed as 1_000_000 if the period is given by freq=xxx. If the period is
larger than 0xffffffff, the value is divided by 1000 and "000" is appended
in the display. That works for periods up to about 50 days.
Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'py/objfun.c')
0 files changed, 0 insertions, 0 deletions
