diff options
author | Dryw Wade <dryw.wade@sparkfun.com> | 2024-08-05 13:47:25 -0600 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-10-15 12:18:29 +1100 |
commit | 7a78e5ae7c89077efdc6d4e18b55c8ea52b3d30c (patch) | |
tree | d46c60d13ab1d7c2c151aaaa9fe4783ff308c61b | |
parent | f2f08ef2d9ebf29d1c01dfe5720a46d49b6e5125 (diff) |
rp2/machine_bitstream: Set SysTick reset value.
In case it doesn't have the correct value.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r-- | ports/rp2/machine_bitstream.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/rp2/machine_bitstream.c b/ports/rp2/machine_bitstream.c index b65ec0214..8240fdad6 100644 --- a/ports/rp2/machine_bitstream.c +++ b/ports/rp2/machine_bitstream.c @@ -48,6 +48,10 @@ void __time_critical_func(machine_bitstream_high_low)(mp_hal_pin_obj_t pin, uint } } mp_hal_pin_output(pin); + + // Set systick reset value. + systick_hw->rvr = 0x00FFFFFF; + // Enable the systick counter, source CPU clock. systick_hw->csr = 5; |