Selaa lähdekoodia

Add support for mRo RemoteID M10049 board

ESP32-C3 based ArduRemoteID board from mRobotics
Leonardo 3 vuotta sitten
vanhempi
sitoutus
6c20ab39fd
2 muutettua tiedostoa jossa 14 lisäystä ja 1 poistoa
  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
+all: headers esp32s3dev esp32c3dev bluemark-db200 bluemark-db110 jw-tbd mro-rid
 
 esp32s3dev: CHIP=esp32s3
 esp32s3dev: ArduRemoteID-ESP32S3_DEV.bin
@@ -32,6 +32,9 @@ bluemark-db110: ArduRemoteID-BLUEMARK_DB110.bin
 jw-tbd: CHIP=esp32s3
 jw-tbd: ArduRemoteID-JW_TBD.bin
 
+mro-rid: CHIP=esp32c3
+mro-rid: ArduRemoteID-MRO_RID.bin
+
 setup:
 	@echo "Installing ESP32 support"
 	$(ARDUINO_CLI) core update-index --config-file arduino-cli.yaml

+ 10 - 0
RemoteIDModule/board_config.h

@@ -67,6 +67,16 @@
 #define STATUS_LED_OK 1
 
 #define CAN_APP_NODE_NAME "JW TBD"
+#elif defined(BOARD_MRO_RID)
+#define BOARD_ID 6
+#define PIN_CAN_TX GPIO_NUM_0
+#define PIN_CAN_RX GPIO_NUM_1
+
+#define PIN_UART_TX 4
+#define PIN_UART_RX 5
+
+#define WS2812_LED_PIN GPIO_NUM_2
+#define CAN_APP_NODE_NAME "mRobotics RemoteID"
 #else
 #error "unsupported board"
 #endif