fix compile errors in bsp:stm32f0x.