Skip to content

Documentation: pio_sm_clkdiv_restart(): Misleading Description #114

Closed
@soundpaint

Description

@soundpaint

The documentation says on pio_sm_clkdiv_restart():

"Restart a state machine's clock divider (resetting the fractional count)"

This sounds, like only the fractional part would be reset, if the phrase in parentheses is taken as an explanation for the phrase before.
In fact, the integer count value is reset and the fractional accumulator (this is not a count!) is cleared, according to RP2040 datasheet, Sect. 3.7, Table 379.

Same for pio_clkdiv_restart_sm_mask().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions