/* Check if the usart receiver is not empty.  */
int32_t usart_async_is_rx_not_empty(const struct usart_async_descriptor *const descr)
/* Check if the usart receiver is not empty.  */
int32_t usart_async_is_rx_not_empty(const struct usart_async_descriptor *const descr)
{
	ASSERT(descr);
	return ringbuffer_num(&descr->rx) > 0;
}