/* Receive one byte from an SPI device using USART in SPI mode.  */
void usart_spi_read_single(Usart *p_usart, uint8_t *data)
/* Receive one byte from an SPI device using USART in SPI mode.  */
void usart_spi_read_single(Usart *p_usart, uint8_t *data)
{
	uint32_t temp_data = 0;
	usart_putchar(p_usart, CONFIG_USART_SPI_DUMMY);
	usart_getchar(p_usart, &temp_data);
	*data = (uint8_t)temp_data;
}