diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-04-04 20:03:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-04 20:03:58 +0000 |
| commit | 72ae46083e64acc012c6b85d3ef7a115657a01e3 (patch) | |
| tree | 024dbdb94cb5537312c5c34f121257265c165bea /rtic-monotonics/Cargo.toml | |
| parent | 064cf19265f72d7f01e0847c545e6250391a2172 (diff) | |
| parent | aeec8bd41bdf3d57098902407ec320f59365641a (diff) | |
Merge #721
721: Added nRF monotonics r=perlindgren a=korken89
Testing completed
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'rtic-monotonics/Cargo.toml')
| -rw-r--r-- | rtic-monotonics/Cargo.toml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/rtic-monotonics/Cargo.toml b/rtic-monotonics/Cargo.toml index c961c05..728e171 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"] @@ -35,4 +48,14 @@ systick-100hz = [] systick-10khz = [] # Timer peripheral on the RP2040 -rp2040 = ["dep:rp2040-pac"] +rp2040 = ["dep:cortex-m", "dep:rp2040-pac"] + +# nRF Timers and RTC +nrf52810 = ["dep:cortex-m", "dep:nrf52810-pac", "dep:critical-section"] +nrf52811 = ["dep:cortex-m", "dep:nrf52811-pac", "dep:critical-section"] +nrf52832 = ["dep:cortex-m", "dep:nrf52832-pac", "dep:critical-section"] +nrf52833 = ["dep:cortex-m", "dep:nrf52833-pac", "dep:critical-section"] +nrf52840 = ["dep:cortex-m", "dep:nrf52840-pac", "dep:critical-section"] +nrf5340-app = ["dep:cortex-m", "dep:nrf5340-app-pac", "dep:critical-section"] +nrf5340-net = ["dep:cortex-m", "dep:nrf5340-net-pac", "dep:critical-section"] +nrf9160 = ["dep:cortex-m", "dep:nrf9160-pac", "dep:critical-section"] |
