[stm32] fix compilation on F1 boards