Skip to content

Timer - Fix misuse of ctrlbset and ctrlbclr#1001

Open
rnd-ash wants to merge 1 commit into
atsamd-rs:masterfrom
rnd-ash:setclrregfix
Open

Timer - Fix misuse of ctrlbset and ctrlbclr#1001
rnd-ash wants to merge 1 commit into
atsamd-rs:masterfrom
rnd-ash:setclrregfix

Conversation

@rnd-ash
Copy link
Copy Markdown
Contributor

@rnd-ash rnd-ash commented Mar 20, 2026

Summary

The Timer TC Ctrlbset and Ctrlbclr can only have a one written to them to modify the peripherals non exposed CTRLB register.

This PR fixes the user of CTRLBSET and CTRLBCLR, such that there is no writing 0 to them (Which results in nothing happening) - Instead, the opposite register is used to have the intended effect

@jbeaurivage
Copy link
Copy Markdown
Contributor

Can't believe this has been sitting around for so long-evidently the peripheral still worked despite this glaring bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants