While the general concepts should be applicable to most any microcontroller, [Sergey]s examples specifically ... you may like our STM32 Bootcamp series on bare-metal STM32 programming.
This can be any combination of GPIO pins on ... for detecting external inputs is of course just one example of interrupts on the STM32 platform. As alluded to earlier, they serve a myriad more ...