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 15
15
#include " variant.h"
16
16
#include < stdio.h>
17
17
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)
20
23
#define SPI_HAS_TRANSACTION 1
21
24
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
+
22
36
#define SPI_MODE0 0x02
23
37
#define SPI_MODE1 0x00
24
38
#define SPI_MODE2 0x03
You can’t perform that action at this time.
0 commit comments