Skip to main content
Alexmouse
Associate III
March 21, 2019
Question

HAL_UART_Receive_IT usage

  • March 21, 2019
  • 2 replies
  • 517 views

I'm having trouble understanding correct usage of the HAL UART functions to receive incoming bytes. The function assumes you know the byte count in advance. I would expect a receive function to respond to receive buffer full,empty and maybe half full flags? How to use the UART HAL layer functions to receive indeterminate incoming data?

This topic has been closed for replies.

2 replies

S.Ma
Principal
March 21, 2019

Save time: for USART, use low layer (LL).

Alexmouse
AlexmouseAuthor
Associate III
March 21, 2019

Makes a bit of a mockery of the HAL layer, but I suspect you're right.