Przeglądaj źródła

added placeholder for JW board

Steve Borenstein 3 lat temu
rodzic
commit
801364802e
2 zmienionych plików z 17 dodań i 1 usunięć
  1. 4 1
      RemoteIDModule/Makefile
  2. 13 0
      RemoteIDModule/board_config.h

+ 4 - 1
RemoteIDModule/Makefile

@@ -15,7 +15,7 @@ export PATH := $(HOME)/.local/bin:$(PATH)
 
 .PHONY: headers
 
-all: headers esp32s3dev esp32c3dev bluemark-db200 bluemark-db110
+all: headers esp32s3dev esp32c3dev bluemark-db200 bluemark-db110 jw-tbd
 
 esp32s3dev: CHIP=esp32s3
 esp32s3dev: ArduRemoteID-ESP32S3_DEV.bin
@@ -29,6 +29,9 @@ bluemark-db200: ArduRemoteID-BLUEMARK_DB200.bin
 bluemark-db110: CHIP=esp32c3
 bluemark-db110: ArduRemoteID-BLUEMARK_DB110.bin
 
+jw-tbd: CHIP=esp32s3
+jw-tbd: ArduRemoteID-JW_TBD.bin
+
 setup:
 	@echo "Installing ESP32 support"
 	$(ARDUINO_CLI) core update-index --config-file arduino-cli.yaml

+ 13 - 0
RemoteIDModule/board_config.h

@@ -47,6 +47,19 @@
 #define PIN_STATUS_LED GPIO_NUM_8 // LED to signal the status
 #define STATUS_LED_ON 1
 
+#elif defined(BOARD_JW_TBD)
+#define BOARD_ID 5
+#define PIN_CAN_TX GPIO_NUM_47
+#define PIN_CAN_RX GPIO_NUM_38
+
+#define PIN_UART_TX 18
+#define PIN_UART_RX 17
+
+#define PIN_STATUS_LED GPIO_NUM_5 // LED to signal the status
+#define LED_MODE_FLASH 1 // flashing LED configuration
+#define STATUS_LED_ON 1
+
+#define CAN_APP_NODE_NAME "JW TBD"
 #else
 #error "unsupported board"
 #endif