From 85f8ae8aa39420485c1ba6a8f8d75233e806f1ad Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Sat, 23 Nov 2024 22:59:45 +0000 Subject: [PATCH] AP_HAL_ESP32: disable define of HAL_ESP32_RCIN on esp32empty - RMTSigReader issue with rmt(legacy): RMT RX BUFFER FULL Signed-off-by: Rhys Mainwaring --- libraries/AP_HAL_ESP32/boards/esp32empty.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libraries/AP_HAL_ESP32/boards/esp32empty.h b/libraries/AP_HAL_ESP32/boards/esp32empty.h index d95e30f9b2..bfea30b74d 100644 --- a/libraries/AP_HAL_ESP32/boards/esp32empty.h +++ b/libraries/AP_HAL_ESP32/boards/esp32empty.h @@ -78,8 +78,10 @@ //SPI Devices #define HAL_ESP32_SPI_DEVICES {} -//RCIN -#define HAL_ESP32_RCIN GPIO_NUM_36 +//RMT pin number +#define HAL_ESP32_RMT_RX_PIN_NUMBER 4 +//RCIN pin number - NOTE: disabled due to issue with legacy rmt library. +// #define HAL_ESP32_RCIN GPIO_NUM_36 //RCOUT #define HAL_ESP32_RCOUT {GPIO_NUM_25, GPIO_NUM_27, GPIO_NUM_33, GPIO_NUM_32, GPIO_NUM_22, GPIO_NUM_21} @@ -124,9 +126,6 @@ //LED #define DEFAULT_NTF_LED_TYPES Notify_LED_None -//RMT pin number -#define HAL_ESP32_RMT_RX_PIN_NUMBER 4 - //SD CARD // Do u want to use mmc or spi mode for the sd card, this is board specific, // as mmc uses specific pins but is quicker,