Example CAN Project integrated
This commit is contained in:
@@ -82,6 +82,9 @@
|
||||
#endif
|
||||
#ifdef ANALOG_WATER
|
||||
#define SENSOR_TANK_ANALOG ANALOG_WATER /**< GPIO 34 - analog water sensor (GPIO_NUM_34) */
|
||||
/* Define CAN communication via I2C Connector */
|
||||
#define CAN_TX GPIO_NUM_17 /**< GPIO 17 - water sensor SDA */
|
||||
#define CAN_RX GPIO_NUM_16 /**< GPIO 16 - water sensor SCL */
|
||||
#else
|
||||
#ifdef HWREVISION07
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @file can.h
|
||||
*
|
||||
*/
|
||||
|
||||
#include "ControllerConfiguration.h"
|
||||
|
||||
#ifndef PLANTCTRL_CAN_H
|
||||
#define PLANTCTRL_CAN_H
|
||||
|
||||
void can_setup(void);
|
||||
void can_loop(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user