/* Receive a sequence of bytes from USART device.  */
status_code_t usart_serial_read_packet(usart_if usart, uint8_t *data, size_t len)
/* Receive a sequence of bytes from USART device.  */
status_code_t usart_serial_read_packet(usart_if usart, uint8_t *data, size_t len)
{
	while (len) {
		usart_serial_getchar(usart, data);
		len--;
		data++;
	}
	return STATUS_OK;
}