Skip to content

bug in atmega128 Timer0 #153

@ggajoch

Description

@ggajoch

Function setting register is incorrect, bit WGM01 is shifted by 1 to right:

                (static_cast<uint8_t>(mode) & 0b10 << WGM01) |
                static_cast<uint8_t>(prescaler);```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions