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