Skip to content

Commit 50583b9

Browse files
authored
Merge pull request #421 from Lauszus/spi_has_transaction
Added missing SPI_HAS_TRANSACTION define, so libraries can tell that …
2 parents fdfb712 + cc89225 commit 50583b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/SPI/src/SPI.h

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
#include "drivers/SPI.h"
1212

13+
// SPI_HAS_TRANSACTION means SPI has beginTransaction(), endTransaction(),
14+
// usingInterrupt(), and SPISetting(clock, bitOrder, dataMode)
15+
#define SPI_HAS_TRANSACTION 1
16+
1317
namespace arduino {
1418

1519
class MbedSPI : public SPIClass

0 commit comments

Comments
 (0)