Example CAN Project integrated

This commit is contained in:
Ollo
2026-09-09 22:04:22 +02:00
parent efd22461fe
commit f66c0eee2b
5 changed files with 120 additions and 23 deletions
+3
View File
@@ -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
+14
View File
@@ -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