atmel-samd: Remember SPI baudrate.

This prevents the SERCOM from blipping the data line on each
transaction and therefore fixes #219.
This commit is contained in:
Scott Shawcroft 2017-09-01 12:44:52 -07:00
parent 4d0dc4b298
commit e2f39a8d93

View File

@ -174,6 +174,7 @@ bool common_hal_busio_spi_configure(busio_spi_obj_t *self,
if (status != STATUS_OK) { if (status != STATUS_OK) {
return false; return false;
} }
self->current_baudrate = baudrate;
} }
SercomSpi *const spi_module = &(self->spi_master_instance.hw->SPI); SercomSpi *const spi_module = &(self->spi_master_instance.hw->SPI);