From a52c58bcd2f384507d4bef6016ed86d671a7153e Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 3 Jun 2016 11:37:19 +0200 Subject: [PATCH] Update mcp_can.cpp --- mcp_can.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mcp_can.cpp b/mcp_can.cpp index 5db643d..b21eeec 100644 --- a/mcp_can.cpp +++ b/mcp_can.cpp @@ -48,6 +48,8 @@ #define spi_readwrite SPI.transfer #define spi_read() spi_readwrite(0x00) +#define SPI_BEGIN() SPI.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0)) +#define SPI_END() SPI.endTransaction() /********************************************************************************************************* ** Function name: mcp2515_reset