mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
add support for nrf52805 (#941)
This commit is contained in:
parent
2efdef6029
commit
6865b69616
5 changed files with 11 additions and 0 deletions
|
@ -45,6 +45,7 @@ critical-section = { version = "1", optional = true }
|
||||||
rp2040-pac = { version = "0.6", optional = true }
|
rp2040-pac = { version = "0.6", optional = true }
|
||||||
|
|
||||||
# nRF52
|
# nRF52
|
||||||
|
nrf52805-pac = { version = "0.12.2", optional = true }
|
||||||
nrf52810-pac = { version = "0.12.2", optional = true }
|
nrf52810-pac = { version = "0.12.2", optional = true }
|
||||||
nrf52811-pac = { version = "0.12.2", optional = true }
|
nrf52811-pac = { version = "0.12.2", optional = true }
|
||||||
nrf52832-pac = { version = "0.12.2", optional = true }
|
nrf52832-pac = { version = "0.12.2", optional = true }
|
||||||
|
@ -80,6 +81,7 @@ systick-64bit = []
|
||||||
rp2040 = ["dep:cortex-m", "dep:rp2040-pac"]
|
rp2040 = ["dep:cortex-m", "dep:rp2040-pac"]
|
||||||
|
|
||||||
# nRF Timers and RTC
|
# nRF Timers and RTC
|
||||||
|
nrf52805 = ["dep:cortex-m", "dep:nrf52805-pac", "dep:critical-section"]
|
||||||
nrf52810 = ["dep:cortex-m", "dep:nrf52810-pac", "dep:critical-section"]
|
nrf52810 = ["dep:cortex-m", "dep:nrf52810-pac", "dep:critical-section"]
|
||||||
nrf52811 = ["dep:cortex-m", "dep:nrf52811-pac", "dep:critical-section"]
|
nrf52811 = ["dep:cortex-m", "dep:nrf52811-pac", "dep:critical-section"]
|
||||||
nrf52832 = ["dep:cortex-m", "dep:nrf52832-pac", "dep:critical-section"]
|
nrf52832 = ["dep:cortex-m", "dep:nrf52832-pac", "dep:critical-section"]
|
||||||
|
|
|
@ -44,6 +44,7 @@ pub mod rp2040;
|
||||||
pub mod imxrt;
|
pub mod imxrt;
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
feature = "nrf52805",
|
||||||
feature = "nrf52810",
|
feature = "nrf52810",
|
||||||
feature = "nrf52811",
|
feature = "nrf52811",
|
||||||
feature = "nrf52832",
|
feature = "nrf52832",
|
||||||
|
@ -66,6 +67,7 @@ pub(crate) const fn cortex_logical2hw(logical: u8, nvic_prio_bits: u8) -> u8 {
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
feature = "rp2040",
|
feature = "rp2040",
|
||||||
|
feature = "nrf52805",
|
||||||
feature = "nrf52810",
|
feature = "nrf52810",
|
||||||
feature = "nrf52811",
|
feature = "nrf52811",
|
||||||
feature = "nrf52832",
|
feature = "nrf52832",
|
||||||
|
|
|
@ -33,6 +33,9 @@ pub mod prelude {
|
||||||
pub use fugit::{self, ExtU64, ExtU64Ceil};
|
pub use fugit::{self, ExtU64, ExtU64Ceil};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "nrf52805")]
|
||||||
|
#[doc(hidden)]
|
||||||
|
pub use nrf52805_pac::{self as pac, RTC0, RTC1};
|
||||||
#[cfg(feature = "nrf52810")]
|
#[cfg(feature = "nrf52810")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub use nrf52810_pac::{self as pac, RTC0, RTC1};
|
pub use nrf52810_pac::{self as pac, RTC0, RTC1};
|
||||||
|
|
|
@ -39,6 +39,9 @@ pub mod prelude {
|
||||||
pub use fugit::{self, ExtU64, ExtU64Ceil};
|
pub use fugit::{self, ExtU64, ExtU64Ceil};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "nrf52805")]
|
||||||
|
#[doc(hidden)]
|
||||||
|
pub use nrf52805_pac::{self as pac, TIMER0, TIMER1, TIMER2};
|
||||||
#[cfg(feature = "nrf52810")]
|
#[cfg(feature = "nrf52810")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub use nrf52810_pac::{self as pac, TIMER0, TIMER1, TIMER2};
|
pub use nrf52810_pac::{self as pac, TIMER0, TIMER1, TIMER2};
|
||||||
|
|
|
@ -76,6 +76,7 @@ impl Package {
|
||||||
"cortex-m-systick",
|
"cortex-m-systick",
|
||||||
"cortex-m-systick,systick-64bit",
|
"cortex-m-systick,systick-64bit",
|
||||||
"rp2040",
|
"rp2040",
|
||||||
|
"nrf52805",
|
||||||
"nrf52810",
|
"nrf52810",
|
||||||
"nrf52811",
|
"nrf52811",
|
||||||
"nrf52832",
|
"nrf52832",
|
||||||
|
|
Loading…
Reference in a new issue