From 805ea267a8515b7ee70125f444763f4aaa95c454 Mon Sep 17 00:00:00 2001 From: onsdagens <112828711+onsdagens@users.noreply.github.com> Date: Sun, 29 Sep 2024 06:21:14 +0200 Subject: Add SYSTIMER based ESP32-C3 monotonic (#972) * add esp32c3 monotonic * fix tests --- rtic-monotonics/Cargo.toml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rtic-monotonics/Cargo.toml') diff --git a/rtic-monotonics/Cargo.toml b/rtic-monotonics/Cargo.toml index 8895fcb..953c658 100644 --- a/rtic-monotonics/Cargo.toml +++ b/rtic-monotonics/Cargo.toml @@ -31,6 +31,7 @@ features = [ "stm32_tim4", "stm32_tim5", "stm32_tim15", + "esp32c3-systimer", ] rustdoc-flags = ["--cfg", "docsrs"] @@ -65,6 +66,11 @@ stm32-metapac = { version = "15.0.0", optional = true } # i.MX RT imxrt-ral = { version = "0.5.3", optional = true } + +esp32c3 = {version = "0.22.0", optional = true } +riscv = {version = "0.11.1", optional = true } + + [build-dependencies] proc-macro2 = { version = "1.0.36", optional = true } quote = { version = "1.0.15", optional = true } @@ -104,6 +110,9 @@ imxrt = ["dep:cortex-m", "dep:imxrt-ral"] imxrt_gpt1 = ["imxrt"] imxrt_gpt2 = ["imxrt"] +# ESP32-C3 Timer +esp32c3-systimer = ["dep:esp32c3", "dep:riscv"] + # STM32 timers # Use as `features = ["stm32g081kb", "stm32_tim15"]` stm32_tim2 = [] -- cgit v1.2.3