aboutsummaryrefslogtreecommitdiff
path: root/rtic-monotonics/src
diff options
context:
space:
mode:
Diffstat (limited to 'rtic-monotonics/src')
-rw-r--r--rtic-monotonics/src/imxrt.rs2
-rw-r--r--rtic-monotonics/src/nrf/rtc.rs2
-rw-r--r--rtic-monotonics/src/nrf/timer.rs2
-rw-r--r--rtic-monotonics/src/rp2040.rs2
-rw-r--r--rtic-monotonics/src/stm32.rs3
-rw-r--r--rtic-monotonics/src/systick.rs2
6 files changed, 7 insertions, 6 deletions
diff --git a/rtic-monotonics/src/imxrt.rs b/rtic-monotonics/src/imxrt.rs
index 6d07be6..bfe6315 100644
--- a/rtic-monotonics/src/imxrt.rs
+++ b/rtic-monotonics/src/imxrt.rs
@@ -63,7 +63,7 @@ macro_rules! __internal_create_imxrt_timer_interrupt {
macro_rules! __internal_create_imxrt_timer_struct {
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
/// A `Monotonic` based on the GPT peripheral.
- struct $name;
+ pub struct $name;
impl $name {
/// Starts the `Monotonic`.
diff --git a/rtic-monotonics/src/nrf/rtc.rs b/rtic-monotonics/src/nrf/rtc.rs
index 5b9a90b..6437f97 100644
--- a/rtic-monotonics/src/nrf/rtc.rs
+++ b/rtic-monotonics/src/nrf/rtc.rs
@@ -85,7 +85,7 @@ macro_rules! __internal_create_nrf_rtc_interrupt {
macro_rules! __internal_create_nrf_rtc_struct {
($name:ident, $mono_backend:ident, $timer:ident) => {
/// A `Monotonic` based on the nRF RTC peripheral.
- struct $name;
+ pub struct $name;
impl $name {
/// Starts the `Monotonic`.
diff --git a/rtic-monotonics/src/nrf/timer.rs b/rtic-monotonics/src/nrf/timer.rs
index 3ec1dfe..35e3743 100644
--- a/rtic-monotonics/src/nrf/timer.rs
+++ b/rtic-monotonics/src/nrf/timer.rs
@@ -95,7 +95,7 @@ macro_rules! __internal_create_nrf_timer_interrupt {
macro_rules! __internal_create_nrf_timer_struct {
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
/// A `Monotonic` based on the nRF Timer peripheral.
- struct $name;
+ pub struct $name;
impl $name {
/// Starts the `Monotonic`.
diff --git a/rtic-monotonics/src/rp2040.rs b/rtic-monotonics/src/rp2040.rs
index 9c5a1dd..47146b4 100644
--- a/rtic-monotonics/src/rp2040.rs
+++ b/rtic-monotonics/src/rp2040.rs
@@ -130,7 +130,7 @@ impl TimerQueueBackend for TimerBackend {
macro_rules! rp2040_timer_monotonic {
($name:ident) => {
/// A `Monotonic` based on the RP2040 Timer peripheral.
- struct $name;
+ pub struct $name;
impl $name {
/// Starts the `Monotonic`.
diff --git a/rtic-monotonics/src/stm32.rs b/rtic-monotonics/src/stm32.rs
index 92800c7..4952882 100644
--- a/rtic-monotonics/src/stm32.rs
+++ b/rtic-monotonics/src/stm32.rs
@@ -83,7 +83,8 @@ macro_rules! __internal_create_stm32_timer_interrupt {
#[macro_export]
macro_rules! __internal_create_stm32_timer_struct {
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
- struct $name;
+ /// A `Monotonic` based on an STM32 timer peripheral.
+ pub struct $name;
impl $name {
/// Starts the `Monotonic`.
diff --git a/rtic-monotonics/src/systick.rs b/rtic-monotonics/src/systick.rs
index cc6ea3e..37cc2ed 100644
--- a/rtic-monotonics/src/systick.rs
+++ b/rtic-monotonics/src/systick.rs
@@ -148,7 +148,7 @@ macro_rules! systick_monotonic {
};
($name:ident, $tick_rate_hz:expr) => {
/// A `Monotonic` based on SysTick.
- struct $name;
+ pub struct $name;
impl $name {
/// Starts the `Monotonic`.