How to optimize handling of multiple inputs efficiently on STM32F4 using GCC? - DevHeads IoT Integration Server