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:
Dryw Wade 2024-08-05 13:47:25 -06:00 committed by Damien George
parent f2f08ef2d9
commit 7a78e5ae7c
1 changed files with 4 additions and 0 deletions

View File

@ -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;