File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
hardware/arduino/sam/libraries/SPI Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1515#include " variant.h"
1616#include < stdio.h>
1717
18- // SPI_HAS_TRANSACTION means SPI has beginTransaction(), endTransaction(),
19- // usingInterrupt(), and SPISetting(clock, bitOrder, dataMode)
18+ // SPI_HAS_TRANSACTION means SPI has
19+ // - beginTransaction()
20+ // - endTransaction()
21+ // - usingInterrupt()
22+ // - SPISetting(clock, bitOrder, dataMode)
2023#define SPI_HAS_TRANSACTION 1
2124
25+ // SPI_HAS_EXTENDED_CS_PIN_HANDLING means SPI has automatic
26+ // CS pin handling and provides the following methods:
27+ // - begin(pin)
28+ // - end(pin)
29+ // - setBitOrder(pin, bitorder)
30+ // - setDataMode(pin, datamode)
31+ // - setClockDivider(pin, clockdiv)
32+ // - transfer(pin, data, SPI_LAST/SPI_CONTINUE)
33+ // - beginTransaction(pin, SPISettings settings) (if transactions are available)
34+ #define SPI_HAS_EXTENDED_CS_PIN_HANDLING 1
35+
2236#define SPI_MODE0 0x02
2337#define SPI_MODE1 0x00
2438#define SPI_MODE2 0x03
You can’t perform that action at this time.
0 commit comments