Skip to main content
Dick Lin
Senior
May 29, 2018 5:48 PM UTC
Question

HAL_UART_Receive() Timeout unit?

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 

)

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    May 29, 2018 5:56 PM UTC
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..