mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-11-17 13:11:27 +01:00
reorganize HW defs again, add generic boards, allow undefined CAN rx/tx
This commit is contained in:
1 parent
5dc2c98642
commit
ac91aeb491
3 files changed
+97
-31
No files matched your search
@@ -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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user