[STM32] exti_select_source rewritten in fewer lines of code