summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ports/rp2/machine_bitstream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/rp2/machine_bitstream.c b/ports/rp2/machine_bitstream.c
index b65ec02147..8240fdad60 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;