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
1 changed files with 1 additions and 0 deletions

View File

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