8000 atmel-samd: Remember SPI baudrate. · sparkfun/circuitpython@e2f39a8 · GitHub
[go: up one dir, main page]

Skip to content
  • Commit e2f39a8

    Browse files
    committed
    atmel-samd: Remember SPI baudrate.
    This prevents the SERCOM from blipping the data line on each transaction and therefore fixes adafruit#219.
    1 parent 4d0dc4b commit e2f39a8

    File tree

    1 file changed

    +1
    -0
    lines changed
    • atmel-samd/common-hal/busio

    1 file changed

    +1
    -0
    lines changed

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

    Lines changed: 1 addition & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -174,6 +174,7 @@ bool common_hal_busio_spi_configure(busio_spi_obj_t *self,
    174174
    if (status != STATUS_OK) {
    175175
    return false;
    176176
    }
    177+
    self->current_baudrate = baudrate;
    177178
    }
    178179

    179180
    SercomSpi *const spi_module = &(self->spi_master_instance.hw->SPI);

    0 commit comments

    < 306F div class="d-flex flex-items-center">
    Comments
     (0)
    0