2023-01-23 20:05:47 +01:00
|
|
|
[package]
|
2023-01-23 20:57:56 +01:00
|
|
|
name = "rtic-monotonics"
|
2023-04-08 21:37:23 +02:00
|
|
|
version = "1.0.0-alpha.1"
|
2023-02-01 22:11:50 +01:00
|
|
|
|
2023-01-23 20:05:47 +01:00
|
|
|
edition = "2021"
|
2023-02-01 22:11:50 +01:00
|
|
|
authors = [
|
|
|
|
"The Real-Time Interrupt-driven Concurrency developers",
|
|
|
|
"Emil Fresk <emil.fresk@gmail.com>",
|
|
|
|
"Henrik Tjäder <henrik@tjaders.com>",
|
|
|
|
"Jorge Aparicio <jorge@japaric.io>",
|
|
|
|
"Per Lindgren <per.lindgren@ltu.se>",
|
|
|
|
]
|
2023-02-01 21:55:05 +01:00
|
|
|
categories = ["concurrency", "embedded", "no-std", "asynchronous"]
|
2023-04-13 18:10:29 +02:00
|
|
|
description = "A library that provides implementations of the Monotonic trait from rtic-time"
|
2023-02-01 21:55:05 +01:00
|
|
|
license = "MIT OR Apache-2.0"
|
2023-01-23 20:05:47 +01:00
|
|
|
|
2023-04-13 18:10:29 +02:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
features = ["cortex-m-systick", "rp2040", "nrf52840"]
|
|
|
|
rustdoc-flags = ["--cfg", "docsrs"]
|
2023-01-23 20:05:47 +01:00
|
|
|
|
|
|
|
[dependencies]
|
2023-04-08 21:37:23 +02:00
|
|
|
rtic-time = { version = "1.0.0-alpha.1", path = "../rtic-time" }
|
2023-02-15 23:21:52 +01:00
|
|
|
embedded-hal-async = { version = "0.2.0-alpha.0", optional = true }
|
2023-02-11 07:55:08 +01:00
|
|
|
fugit = { version = "0.3.6" }
|
2023-01-27 20:20:14 +01:00
|
|
|
atomic-polyfill = "1"
|
2023-02-04 10:14:12 +01:00
|
|
|
cfg-if = "1.0.0"
|
2023-02-11 07:55:08 +01:00
|
|
|
cortex-m = { version = "0.7.6", optional = true }
|
2023-04-01 20:48:23 +02:00
|
|
|
critical-section = { version = "1", optional = true }
|
|
|
|
|
|
|
|
# RP2040
|
2023-02-10 07:52:50 +01:00
|
|
|
rp2040-pac = { version = ">=0.2.0,<0.5", optional = true }
|
2023-02-02 20:14:41 +01:00
|
|
|
|
2023-04-01 20:48:23 +02:00
|
|
|
# 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 }
|
|
|
|
|
2023-02-02 20:14:41 +01:00
|
|
|
[features]
|
2023-02-10 07:52:50 +01:00
|
|
|
default = []
|
2023-02-11 07:55:08 +01:00
|
|
|
defmt = ["fugit/defmt"]
|
2023-02-10 07:52:50 +01:00
|
|
|
|
2023-02-11 07:55:08 +01:00
|
|
|
# Systick on Cortex-M, default 1 kHz
|
2023-03-04 02:26:34 +01:00
|
|
|
cortex-m-systick = ["dep:cortex-m"]
|
|
|
|
systick-100hz = []
|
|
|
|
systick-10khz = []
|
2023-02-10 07:52:50 +01:00
|
|
|
|
2023-02-11 07:55:08 +01:00
|
|
|
# Timer peripheral on the RP2040
|
2023-04-02 20:32:10 +02:00
|
|
|
rp2040 = ["dep:cortex-m", "dep:rp2040-pac"]
|
2023-04-01 20:48:23 +02:00
|
|
|
|
|
|
|
# nRF Timers and RTC
|
2023-04-02 20:32:10 +02:00
|
|
|
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"]
|