Skip to content

{bp-18598] stm32h5/adc: fix TROVS bit and watchdog threshold register writes#18636

Merged
xiaoxiang781216 merged 1 commit into
apache:releases/12.13from
jerpelea:bp-18598
Mar 27, 2026
Merged

{bp-18598] stm32h5/adc: fix TROVS bit and watchdog threshold register writes#18636
xiaoxiang781216 merged 1 commit into
apache:releases/12.13from
jerpelea:bp-18598

Conversation

@jerpelea
Copy link
Copy Markdown
Contributor

Summary

Fix adc_oversample() where priv->trovs (a bool, 0 or 1) was OR'd directly into setbits instead of using ADC_CFGR2_TROVS (bit 9). This caused triggered oversampling to never actually be enabled.

Fix ANIOC_WDOG_UPPER and ANIOC_WDOG_LOWER ioctls where the TR1 register was overwritten with only the new threshold value, zeroing out the opposite threshold and the AWDFILT digital filter bits. Use read-modify-write to preserve the other fields.

Impact

RELEASE

Testing

CI

Fix adc_oversample() where priv->trovs (a bool, 0 or 1) was OR'd
directly into setbits instead of using ADC_CFGR2_TROVS (bit 9).
This caused triggered oversampling to never actually be enabled.

Fix ANIOC_WDOG_UPPER and ANIOC_WDOG_LOWER ioctls where the TR1
register was overwritten with only the new threshold value, zeroing
out the opposite threshold and the AWDFILT digital filter bits.
Use read-modify-write to preserve the other fields.

Signed-off-by: kywwilson11 <kwilson@2g-eng.com>
@jerpelea jerpelea requested a review from raiden00pl as a code owner March 27, 2026 08:34
@github-actions github-actions Bot added Arch: arm Issues related to ARM (32-bit) architecture Size: S The size of the change in this PR is small labels Mar 27, 2026
@xiaoxiang781216 xiaoxiang781216 merged commit ba0f180 into apache:releases/12.13 Mar 27, 2026
3 checks passed
@jerpelea jerpelea deleted the bp-18598 branch May 20, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants