Skip to content

Commit 7a78e5a

Browse files
sfe-SparkFrodpgeorge
authored andcommitted
rp2/machine_bitstream: Set SysTick reset value.
In case it doesn't have the correct value. Signed-off-by: Damien George <[email protected]>
1 parent f2f08ef commit 7a78e5a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/rp2/machine_bitstream.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ void __time_critical_func(machine_bitstream_high_low)(mp_hal_pin_obj_t pin, uint
4848
}
4949
}
5050
mp_hal_pin_output(pin);
51+
52+
// Set systick reset value.
53+
systick_hw->rvr = 0x00FFFFFF;
54+
5155
// Enable the systick counter, source CPU clock.
5256
systick_hw->csr = 5;
5357

0 commit comments

Comments
 (0)