Skip to content

Timer delay zero should fail #543

@edibblepdx

Description

@edibblepdx

Delaying the timer zero cycles blocks until the timer overflows because the COMPARE event is not immediately raised. Setting a zero delay is not often intentional and should fail either through panic or result. Alternatively, start the timer for a minimum of one cycle.

Currently at 1MHz timer frequency and 32-bits of accuracy, setting the delay to zero should actually delay 4294.97 seconds, or roughly 1.19 hours. Do note that I haven't actually tested this.

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