mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-18 16:23:07 +01:00
add board definitions for Homberger board
This commit is contained in:
@@ -21,13 +21,11 @@ board_build.embed_files =
|
||||
generated/index.html.gz
|
||||
generated/config.json.gz
|
||||
extra_scripts = pre:extra_script.py
|
||||
build_flags=
|
||||
-Igenerated
|
||||
build_flags = -Igenerated
|
||||
|
||||
[env:m5stack-atom]
|
||||
board = m5stack-atom
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
lib_deps = ${env.lib_deps}
|
||||
build_flags =
|
||||
-D BOARD_M5ATOM
|
||||
${env.build_flags}
|
||||
@@ -36,8 +34,7 @@ upload_protocol = esptool
|
||||
|
||||
[env:m5stack-atom-canunit]
|
||||
board = m5stack-atom
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
lib_deps = ${env.lib_deps}
|
||||
build_flags =
|
||||
-D BOARD_M5ATOM_CANUNIT
|
||||
${env.build_flags}
|
||||
@@ -46,10 +43,18 @@ upload_protocol = esptool
|
||||
|
||||
[env:m5stickc-atom-canunit]
|
||||
board = m5stick-c
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
lib_deps = ${env.lib_deps}
|
||||
build_flags =
|
||||
-D BOARD_M5STICK_CANUNIT -D HAS_RTC -D HAS_M5LCD
|
||||
${env.build_flags}
|
||||
upload_port = /dev/esp32
|
||||
upload_protocol = esptool
|
||||
|
||||
[env:nodemcu-homberger]
|
||||
board = nodemcu-32s
|
||||
lib_deps = ${env.lib_deps}
|
||||
build_flags =
|
||||
-D BOARD_HOMBERGER
|
||||
${env.build_flags}
|
||||
upload_port = /dev/esp32
|
||||
upload_protocol = esptool
|
||||
|
||||
@@ -29,11 +29,15 @@
|
||||
#elif BOARD_M5STICK_CANUNIT
|
||||
#define ESP32_CAN_TX_PIN GPIO_NUM_32
|
||||
#define ESP32_CAN_RX_PIN GPIO_NUM_33
|
||||
#else
|
||||
#define ESP32_CAN_TX_PIN GPIO_NUM_5 // Set CAN TX port to 5 (Caution!!! Pin 2 before)
|
||||
#define ESP32_CAN_RX_PIN GPIO_NUM_4 // Set CAN RX port to 4
|
||||
#define GWSERIAL_RX GPIO_NUM_16
|
||||
#elif BOARD_HOMBERGER
|
||||
#define ESP32_CAN_TX_PIN GPIO_NUM_5
|
||||
#define ESP32_CAN_RX_PIN GPIO_NUM_4
|
||||
//serial input only
|
||||
#define GWSERIAL_RX 16
|
||||
#define GWSERIAL_MODE "RX"
|
||||
|
||||
#else
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user