Make rtic-monotonic macros create a public type

This commit is contained in:
Emil Fresk 2024-06-02 10:15:17 +02:00
parent d06c6eeed7
commit 689c4a068e
8 changed files with 14 additions and 7 deletions

View file

@ -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`.