Skip to content

Commit cfa4425

Browse files
enable preloading data register
1 parent 5490a82 commit cfa4425

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • ports/atmel-samd/common-hal/busio

ports/atmel-samd/common-hal/busio/SPI.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
203203
self->slave_mode = slave_mode;
204204
hri_sercomspi_write_CTRLA_DOPO_bf(sercom, dopo);
205205
hri_sercomspi_write_CTRLA_DIPO_bf(sercom, slave_mode ? mosi_pad : miso_pad);
206+
hri_sercomspi_write_CTRLB_PLOADEN_bit(sercom, slave_mode);
206207

207208
// Always start at 250khz which is what SD cards need. They are sensitive to
208209
// SPI bus noise before they are put into SPI mode.

0 commit comments

Comments
 (0)