removed all build errors from STM32 code