Explorar o código

add support for BlueMark db202mav board

Roel Schiphorst %!s(int64=3) %!d(string=hai) anos
pai
achega
2792df68c9
Modificáronse 2 ficheiros con 14 adicións e 1 borrados
  1. 4 1
      RemoteIDModule/Makefile
  2. 10 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 jw-tbd mro-rid jwrid-esp32s3
+all: headers esp32s3dev esp32c3dev bluemark-db200 bluemark-db110 jw-tbd mro-rid jwrid-esp32s3 bluemark-db202
 
 esp32s3dev: CHIP=esp32s3
 esp32s3dev: ArduRemoteID-ESP32S3_DEV.bin
@@ -38,6 +38,9 @@ jwrid-esp32s3: ArduRemoteID-JWRID_ESP32S3.bin
 mro-rid: CHIP=esp32c3
 mro-rid: ArduRemoteID-MRO_RID.bin
 
+bluemark-db202: CHIP=esp32c3
+bluemark-db202: ArduRemoteID-BLUEMARK_DB202.bin
+
 setup:
 	@echo "Installing ESP32 support"
 	$(ARDUINO_CLI) core update-index --config-file arduino-cli.yaml

+ 10 - 0
RemoteIDModule/board_config.h

@@ -91,6 +91,16 @@
 
 #define CAN_APP_NODE_NAME "JWRID_ESP32S3"
 
+#elif defined(BOARD_BLUEMARK_DB202)
+#define BOARD_ID 8
+
+#define PIN_UART_TX 7
+#define PIN_UART_RX 6
+
+#define PIN_STATUS_LED GPIO_NUM_8 // LED to signal the status
+// LED off when ready to arm
+#define STATUS_LED_OK 0
+
 #else
 #error "unsupported board"
 #endif