aboutsummaryrefslogtreecommitdiff
path: root/rtic-monotonics/Cargo.toml
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2023-04-01 20:48:23 +0200
committerEmil Fresk <emil.fresk@gmail.com>2023-04-02 15:19:07 +0200
commita2f153249f926876e7169016f3dc8e861a9ef065 (patch)
tree1f2ccf36f5b8fc878792704d162924337f54eaf4 /rtic-monotonics/Cargo.toml
parent064cf19265f72d7f01e0847c545e6250391a2172 (diff)
Added nRF monotonics
Diffstat (limited to 'rtic-monotonics/Cargo.toml')
-rw-r--r--rtic-monotonics/Cargo.toml23
1 files changed, 23 insertions, 0 deletions
diff --git a/rtic-monotonics/Cargo.toml b/rtic-monotonics/Cargo.toml
index c961c05..503c22d 100644
--- a/rtic-monotonics/Cargo.toml
+++ b/rtic-monotonics/Cargo.toml
@@ -23,8 +23,21 @@ fugit = { version = "0.3.6" }
atomic-polyfill = "1"
cfg-if = "1.0.0"
cortex-m = { version = "0.7.6", optional = true }
+critical-section = { version = "1", optional = true }
+
+# RP2040
rp2040-pac = { version = ">=0.2.0,<0.5", optional = true }
+# nRF52
+nrf52810-pac = { version = "0.12.2", optional = true }
+nrf52811-pac = { version = "0.12.2", optional = true }
+nrf52832-pac = { version = "0.12.2", optional = true }
+nrf52833-pac = { version = "0.12.2", optional = true }
+nrf52840-pac = { version = "0.12.2", optional = true }
+nrf5340-app-pac = { version = "0.12.2", optional = true }
+nrf5340-net-pac = { version = "0.12.2", optional = true }
+nrf9160-pac = { version = "0.12.2", optional = true }
+
[features]
default = []
defmt = ["fugit/defmt"]
@@ -36,3 +49,13 @@ systick-10khz = []
# Timer peripheral on the RP2040
rp2040 = ["dep:rp2040-pac"]
+
+# nRF Timers and RTC
+nrf52810 = ["dep:nrf52810-pac", "dep:critical-section"]
+nrf52811 = ["dep:nrf52811-pac", "dep:critical-section"]
+nrf52832 = ["dep:nrf52832-pac", "dep:critical-section"]
+nrf52833 = ["dep:nrf52833-pac", "dep:critical-section"]
+nrf52840 = ["dep:nrf52840-pac", "dep:critical-section"]
+nrf5340-app = ["dep:nrf5340-app-pac", "dep:critical-section"]
+nrf5340-net = ["dep:nrf5340-net-pac", "dep:critical-section"]
+nrf9160 = ["dep:nrf9160-pac", "dep:critical-section"]