Skip to content

Implement TimeInt for unsigned ints #19

@TheZoq2

Description

@TheZoq2

I'm trying to port our current time unit types in stm32f1xx_hal to use this crate. Ideally, We currently use u32 as the inner type for our types, which I think makes sense since negative frequencies, or durations to wait for a timer for example don't make much sense.

It looks like the TimeInt type requires From<i32> and Into<i64> to be implemented for the inner type. Is there a reason for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionSomething that needs more discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions