From f0c313c0d5773b2a94102ca731319a81067a9bf1 Mon Sep 17 00:00:00 2001 From: Thad House Date: Sat, 23 Nov 2019 15:59:50 -0800 Subject: [PATCH] Fix build so they show up as an arduino library --- FRC_CAN.cpp | 4 ++-- examples/FRC_CAN_Communication/FRC_CAN_Communication.ino | 4 ++-- frc/CAN.h => frc_CAN.h | 0 frc/can_core.h => frc_can_core.h | 0 frc/mcp2515.h => frc_mcp2515.h | 2 +- mcp2515.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename frc/CAN.h => frc_CAN.h (100%) rename frc/can_core.h => frc_can_core.h (100%) rename frc/mcp2515.h => frc_mcp2515.h (99%) diff --git a/FRC_CAN.cpp b/FRC_CAN.cpp index 9b2df15..da1decb 100644 --- a/FRC_CAN.cpp +++ b/FRC_CAN.cpp @@ -1,5 +1,5 @@ -#include "frc/CAN.h" -#include "frc/mcp2515.h" +#include "frc_CAN.h" +#include "frc_mcp2515.h" using namespace frc; diff --git a/examples/FRC_CAN_Communication/FRC_CAN_Communication.ino b/examples/FRC_CAN_Communication/FRC_CAN_Communication.ino index e4c0e6b..02db99d 100644 --- a/examples/FRC_CAN_Communication/FRC_CAN_Communication.ino +++ b/examples/FRC_CAN_Communication/FRC_CAN_Communication.ino @@ -1,6 +1,6 @@ -#include "frc/mcp2515.h" -#include "frc/CAN.h" +#include "frc_mcp2515.h" +#include "frc_CAN.h" // Define the CS pin and the interrupt pin #define CAN_CS 10 diff --git a/frc/CAN.h b/frc_CAN.h similarity index 100% rename from frc/CAN.h rename to frc_CAN.h diff --git a/frc/can_core.h b/frc_can_core.h similarity index 100% rename from frc/can_core.h rename to frc_can_core.h diff --git a/frc/mcp2515.h b/frc_mcp2515.h similarity index 99% rename from frc/mcp2515.h rename to frc_mcp2515.h index 9e8bbbe..a543a6f 100644 --- a/frc/mcp2515.h +++ b/frc_mcp2515.h @@ -2,7 +2,7 @@ #define _FRC_MCP2515_H_ #include -#include "frc/can_core.h" +#include "frc_can_core.h" /* * Speed 8M diff --git a/mcp2515.cpp b/mcp2515.cpp index 0b55b71..a4ed83d 100644 --- a/mcp2515.cpp +++ b/mcp2515.cpp @@ -1,4 +1,4 @@ -#include "frc/mcp2515.h" +#include "frc_mcp2515.h" using namespace frc;