RTEMS | BUG: Fix AFIO bit clearing in set_remap_config (!1127)

Mohamed Ayman (@mohamedayman23) gitlab at rtems.org
Sat Mar 14 15:06:34 UTC 2026



Mohamed Ayman created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1127

Project:Branches: mohamedayman23/rtems:fix-AFIO-bitmask to rtems/rtos/rtems:main
Author:   Mohamed Ayman



BUG: Fix AFIO bit clearing in set_remap_config

Previously, the mask operation in set_remap_config used `value &= mask << entry.start;`, which incorrectly kept unrelated bits and caused GPIO remapping to behave incorrectly.

This change updates it to `value &= ~(mask << entry.start);` so that only the intended bits are cleared before setting the new value.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1127
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260314/40920452/attachment.htm>


More information about the bugs mailing list