STM32F4 UART HAL Driver

后端 未结 6 1014
北荒
北荒 2021-01-30 04:49

I\'m trying to figure out how to use this new HAL driver. I want to receive data using the HAL_UART_Receive_IT() which sets up the device to run an interrupt functi

6条回答
  •  余生分开走
    2021-01-30 05:10

    Usually i wrote my own UART circular buffer implementation. As said before, STM32 HAL library's UART interrupt functions are little bit strange. You can write your own circular buffer with just 2 array and pointers using UART interrupt flags.

提交回复
热议问题