<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> Too many times I drilled down in like three levels of subroutines calls in the STM32 HAL code to have it end with “if (arg = 1) set bit else reset bit” when the ENTIRE call stack could<br />be replaced with<br /> reg = (reg & ~bit) | (flag) ? bit : 0;</p><p>or *REG_ADDRESS = value;</p>