Skip to content

Update timers.h for _RTC_PRESCALE_VALUE. Fixes millis()/delay() when RTC is used as timing source instead of TCA0. Fixes #1288 - #1289

Open
burnsb wants to merge 1 commit into
SpenceKonde:masterfrom
burnsb:patch-1
Open

Update timers.h for _RTC_PRESCALE_VALUE. Fixes millis()/delay() when RTC is used as timing source instead of TCA0. Fixes #1288#1289
burnsb wants to merge 1 commit into
SpenceKonde:masterfrom
burnsb:patch-1

Conversation

@burnsb

@burnsb burnsb commented Aug 11, 2026

Copy link
Copy Markdown

_RTC_PRESCALE_VALUE was defined as 0x05. It should be 0x28 as the bit position of the prescaler field in RTC.CTRLA is 3 bits over. See #1288

_RTC_PRESCALE_VALUE was defined as 0x05. It should be 0x28 as the bit position of the prescaler field in RTC.CTRLA is 3 bits over.
@burnsb burnsb changed the title Update timers.h for _RTC_PRESCALE_VALUE. Fixes millis()/delay() when RTC is used as timing source instead of TCA0. Update timers.h for _RTC_PRESCALE_VALUE. Fixes millis()/delay() when RTC is used as timing source instead of TCA0. Fixes #1288 Aug 11, 2026
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.

1 participant