STM32 PART 9 - A STATE MACHINE USING INTERRUPTS