diff --git a/mcp2518fd_can_def.h b/mcp2518fd_can_def.h index 6e116b6..2eece21 100644 --- a/mcp2518fd_can_def.h +++ b/mcp2518fd_can_def.h @@ -51,6 +51,7 @@ DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. #include + // DOM-IGNORE-BEGIN #ifdef __cplusplus // Provide C++ Compatibility extern "C" { diff --git a/mcp2518fd_can_dfs.h b/mcp2518fd_can_dfs.h index 23b07d3..f500d9d 100644 --- a/mcp2518fd_can_dfs.h +++ b/mcp2518fd_can_dfs.h @@ -45,7 +45,7 @@ DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. // ***************************************************************************** // Section: Included Files -#include "drv_canfdspi_defines.h" +#include "mcp2518fd_can_def.h" // DOM-IGNORE-BEGIN #ifdef __cplusplus // Provide C++ Compatibility @@ -796,4 +796,7 @@ static const uint32_t mcp25xxfdControlResetValues[] = { #endif +#define MCP2518fd_SELECT() digitalWrite(SPICS, LOW) +#define MCP2518fd_UNSELECT() digitalWrite(SPICS, HIGH) + #endif // _DRV_CANFDSPI_REGISTER_H