diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2024-06-02 10:15:17 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2024-06-02 12:34:43 +0200 |
| commit | 689c4a068eddfe32956c1975cdc241b26d1751da (patch) | |
| tree | 58d55b3e8af3cf6b933e4bce24466d1fba37aec3 /rtic-monotonics/src/nrf | |
| parent | d06c6eeed7b63ac9221606b9bc0b977a67ebe92c (diff) | |
Make rtic-monotonic macros create a public type
Diffstat (limited to 'rtic-monotonics/src/nrf')
| -rw-r--r-- | rtic-monotonics/src/nrf/rtc.rs | 2 | ||||
| -rw-r--r-- | rtic-monotonics/src/nrf/timer.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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`. |
