reorganize HW defs again, add generic boards, allow undefined CAN rx/tx

This commit is contained in:
andreas committed 2023-08-30 16:42:08 +02:00
1 parent 5dc2c98642
commit ac91aeb491
3 files changed
+97 -31

No files matched your search

+8
View File
@@ -127,6 +127,14 @@ class Nmea2kTwaiLog : public Nmea2kTwai{
}
};
#ifndef ESP32_CAN_TX_PIN
#pragma message "WARNING: ESP32_CAN_TX_PIN not defined"
#define ESP32_CAN_TX_PIN GPIO_NUM_NC
#endif
#ifndef ESP32_CAN_RX_PIN
#pragma message "WARNING: ESP32_CAN_RX_PIN not defined"
#define ESP32_CAN_RX_PIN GPIO_NUM_NC
#endif
Nmea2kTwai &NMEA2000=*(new Nmea2kTwaiLog(ESP32_CAN_TX_PIN,ESP32_CAN_RX_PIN,CAN_RECOVERY_PERIOD,&logger));