From 4ea73021d62bda15ce9a7b36123e4a237c8e4255 Mon Sep 17 00:00:00 2001 From: Nils Fitinghoff Date: Thu, 24 Aug 2023 16:29:20 +0200 Subject: rtic-monotonics: Add 64-bit SysTick monotonic Counting at 1 kHz, 32 bits for counting ticks is not enough to ensure monotonicity for more than 50 days. Add a feature to change the backing storage to 64 bits. --- rtic-monotonics/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rtic-monotonics/Cargo.toml') diff --git a/rtic-monotonics/Cargo.toml b/rtic-monotonics/Cargo.toml index b88b088..de94d3f 100644 --- a/rtic-monotonics/Cargo.toml +++ b/rtic-monotonics/Cargo.toml @@ -48,6 +48,8 @@ defmt = ["fugit/defmt"] cortex-m-systick = ["dep:cortex-m"] systick-100hz = [] systick-10khz = [] +# Use 64-bit wide backing storage for the Instant +systick-64bit = [] # Timer peripheral on the RP2040 rp2040 = ["dep:cortex-m", "dep:rp2040-pac"] -- cgit v1.2.3