Update HAL file to compatibility with stm32f4 controller