Stm32 firmware library function