Skip to main content
Alexmouse
Associate III
Mar 21, 2019 8:07 PM UTC
Question

HAL_UART_Receive_IT usage

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
Mar 21, 2019 8:12 PM UTC

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

Alexmouse
AlexmouseAuthor
Associate III
Mar 21, 2019 8:30 PM UTC

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