1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-14 22:43:07 +01:00

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

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

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));