/* Read a string of bytes through the software UART. */
int32_t swuart_read_string(struct swuart_dev *dev, uint8_t *string, uint32_t size)
/* Read a string of bytes through the software UART. */
int32_t swuart_read_string(struct swuart_dev *dev, uint8_t *string, uint32_t size)
{
	uint32_t i;
	int32_t check = 0;
	for(i = 0; i < size; i++) {
		check = swuart_read_char(dev, &string[i]);
		if(check != 0)
			return check;
	}
	return check;
}