From e2edfae79b770c504b7a2b4ceb29f54b9e73b9f4 Mon Sep 17 00:00:00 2001 From: David Buzz Date: Tue, 2 May 2023 09:27:32 +1000 Subject: [PATCH] AP_HAL: add a new board for tomte76 mpu9255 board, bmp280 baro, micro sd card and NEO M8 clone a --- libraries/AP_HAL/AP_HAL_Boards.h | 1 + libraries/AP_HAL/board/esp32.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index e9813c1860..933f3003f7 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -64,6 +64,7 @@ #define HAL_BOARD_SUBTYPE_ESP32_ICARUS 6002 #define HAL_BOARD_SUBTYPE_ESP32_BUZZ 6003 #define HAL_BOARD_SUBTYPE_ESP32_EMPTY 6004 +#define HAL_BOARD_SUBTYPE_ESP32_TOMTE76 6005 /* InertialSensor driver types */ #define HAL_INS_NONE 0 diff --git a/libraries/AP_HAL/board/esp32.h b/libraries/AP_HAL/board/esp32.h index 4c7bff3ef5..960a4d12a7 100644 --- a/libraries/AP_HAL/board/esp32.h +++ b/libraries/AP_HAL/board/esp32.h @@ -9,6 +9,8 @@ #include "esp32icarus.h" //Alex #elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_ESP32_EMPTY #include "esp32empty.h" //wiktor-m +#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_ESP32_TOMTE76 +#include "esp32tomte76.h" //tomte76 on discord #endif #define HAL_BOARD_NAME "ESP32"