File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 44#ifndef CAN_H
55#define CAN_H
66
7- #ifdef ARDUINO_ARCH_ESP32
7+ #if defined(ADAFRUIT_FEATHER_M4_CAN )
8+ #include "CANSAME5x.h"
9+ #elif defined(ARDUINO_ARCH_ESP32 )
810#include "ESP32SJA1000.h"
911#else
1012#include "MCP2515.h"
Original file line number Diff line number Diff line change 11// Copyright 2020 © Jeff Epler for Adafruit Industries. All rights reserved.
22// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33
4+ #if defined(ADAFRUIT_FEATHER_M4_CAN)
45#include < stdint.h>
56#include < stdlib.h>
67
@@ -501,3 +502,7 @@ void CAN1_Handler() {
501502}
502503
503504CANSAME5x *CANSAME5x::instances[2 ];
505+
506+ CANSAME5x CAN;
507+
508+ #endif
Original file line number Diff line number Diff line change @@ -50,3 +50,5 @@ class CANSAME5x : public CANControllerClass {
5050 friend void CAN0_Handler (void );
5151 friend void CAN1_Handler (void );
5252};
53+
54+ extern CANSAME5x CAN;
You can’t perform that action at this time.
0 commit comments