aboutsummaryrefslogtreecommitdiff
path: root/rtic-monotonics/src/stm32.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2024-06-02 10:15:17 +0200
committerEmil Fresk <emil.fresk@gmail.com>2024-06-02 12:34:43 +0200
commit689c4a068eddfe32956c1975cdc241b26d1751da (patch)
tree58d55b3e8af3cf6b933e4bce24466d1fba37aec3 /rtic-monotonics/src/stm32.rs
parentd06c6eeed7b63ac9221606b9bc0b977a67ebe92c (diff)
Make rtic-monotonic macros create a public type
Diffstat (limited to 'rtic-monotonics/src/stm32.rs')
-rw-r--r--rtic-monotonics/src/stm32.rs3
1 files changed, 2 insertions, 1 deletions
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`.