[BSP]Fixes two writing mistake for stm32f10x.