Skip to content

Commit cc87363

Browse files
committed
documentation: caution on SPI clock speed for SAMD21
1 parent 64831f4 commit cc87363

File tree

1 file changed

+3
-0
lines changed
  • shared-bindings/busio

1 file changed

+3
-0
lines changed

shared-bindings/busio/SPI.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ static void check_lock(busio_spi_obj_t *self) {
140140
//| :param int baudrate: the desired clock rate in Hertz. The actual clock rate may be higher or lower
141141
//| due to the granularity of available clock settings.
142142
//| Check the `frequency` attribute for the actual clock rate.
143+
//| **Note:** on the SAMD21, it is possible to set the baud rate to 24 MHz, but that
144+
//| speed is not guaranteed to work. 12 MHz is the next available lower speed, and is
145+
//| within spec for the SAMD21.
143146
//| :param int polarity: the base state of the clock line (0 or 1)
144147
//| :param int phase: the edge of the clock that data is captured. First (0)
145148
//| or second (1). Rising or falling depends on clock polarity.

0 commit comments

Comments
 (0)