rp2/machine_bitstream: Set SysTick reset value.
In case it doesn't have the correct value. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
f2f08ef2d9
commit
7a78e5ae7c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue