/* Setup a USART in SPI mode device. 
The returned device descriptor structure must be passed to the driver whenever that device should be used as current slave device. */
void usart_spi_setup_device(USART_t *usart, struct usart_spi_device *device, spi_flags_t flags, unsigned long baud_rate, board_spi_select_id_t sel_id)
/* Setup a USART in SPI mode device. 
The returned device descriptor structure must be passed to the driver whenever that device should be used as current slave device. */
void usart_spi_setup_device(USART_t *usart, struct usart_spi_device *device, spi_flags_t flags, unsigned long baud_rate, board_spi_select_id_t sel_id)
{
	usart_spi_options_t opt;
	opt.baudrate = baud_rate;
	opt.spimode = flags;
	opt.data_order = false;
	usart_init_spi(usart, &opt);
}