Skip to content

ht32 widened BFTM counter type to 32 bits - #470

Open
markwellis wants to merge 1 commit into
ChibiOS:chibios-21.11.xfrom
markwellis:qmk-ht32-bftm-counter-width
Open

markwellis wants to merge 1 commit into
ChibiOS:chibios-21.11.xfrom
markwellis:qmk-ht32-bftm-counter-width

Conversation

@markwellis

Copy link
Copy Markdown

gptcnt_t is currently uint16_t, truncating BFTM intervals above 65,535 ticks. For example, a requested interval of 96,000 ticks becomes 30,464.

Holtek’s HT32F52342/52 user manual, pages 300–301, defines the BFTM counter and compare values as 32-bit fields.

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