#include <stm32f1xx_hal.h> #include <sysinit.h> SYSINIT(hal_init, SI_SUB_HAL, SI_ORDER_FIRST, (void (*)(const void *))HAL_Init, NULL);