Skip to content

Monotonic trait confusion #749

@diggit

Description

@diggit

Hi,
I'd like to implement custom monotonic using TIM3 on STM32H7. Ideally using HAL rather than PAC.
I am unsure which Monotonic trait to implement.
There is one in rtic-time (this - rtic repo) and another one in rtic-monotonic repo.
All the existing implementations I found (except those in rtic-monotonics in this repo) are implementing trait from rtic-monotonic repo.
Why there are 2 different definitions of same trait?

Please bear with me, I am total rust and rtic beginner.

My goal is to implement something like this for STM32H7
https://github.com/stm32-rs/stm32f4xx-hal/blob/master/src/timer/monotonic.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions