diff options
| author | robert-hh <robert@hammelrath.com> | 2023-01-25 18:05:40 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-02-21 23:17:12 +1100 |
| commit | 4160ec087b265cfef320140e99449271a7757374 (patch) | |
| tree | 62eac234803a3fe81dc7982f6cdd5de6cb4a49f1 /tests/esp32 | |
| parent | 76cf98c35b81dded1dc623d07f25e28713a16b63 (diff) | |
samd/mcu: Set the SAMD21 us-counter to 2 MHz for better resolution.
It turned out that the result of calling ticks_us() was always either odd
or even, depending on some internal state during boot. So the us-counter
was set to a 2 MHz input and the result shifted by 1. The counting period
is still long enough, since internally a (now) 63 bit value is used for us.
Diffstat (limited to 'tests/esp32')
0 files changed, 0 insertions, 0 deletions
