cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_UART_Receive() Timeout unit?

Dick Lin
Senior
Posted on May 29, 2018 at 19:48

Hi,

What's the unit of the HAL_UART_Recevie() Timeout value? Is this us, ms, or SysTick? If I have FreeRTOS enabled and using TIM1 for SYS in Cube, how can I make sure this get right right timeout value?

Thanks,

Dick

HAL_StatusTypeDef ( * huart,

uint8_t * pData,

uint16_t Size,

uint32_t Timeout 

)

1 REPLY 1
Posted on May 29, 2018 at 19:56

Whatever tick unit you have for calling HAL_IncTick(), usually 1ms time base

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..