From 6fae22470435ac153f4cc6bddbe4e0a7b4efeb54 Mon Sep 17 00:00:00 2001 From: wangcoolc <1387172050@163.com> Date: Fri, 6 Nov 2020 18:39:30 +0800 Subject: [PATCH] Modified mcp2518fd can def and dfs .h file --- mcp2518fd_can_def.h | 1 + mcp2518fd_can_dfs.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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