hwdef: remove DISABLE_SERIAL_ESC_COMM AP_Periph boilerplate

... use the defaults file instead
This commit is contained in:
Peter Barker 2024-04-01 10:41:45 +11:00 committed by Andrew Tridgell
parent 9978b8f97f
commit 416f7d393a
29 changed files with 4 additions and 31 deletions

View File

@ -302,12 +302,8 @@
#endif
#ifndef HAL_SERIAL_ESC_COMM_ENABLED
#ifdef DISABLE_SERIAL_ESC_COMM
#define HAL_SERIAL_ESC_COMM_ENABLED 0
#else
#define HAL_SERIAL_ESC_COMM_ENABLED 1
#endif
#endif
#ifndef AP_BOOTLOADER_FLASHING_ENABLED
#define AP_BOOTLOADER_FLASHING_ENABLED 0

View File

@ -84,7 +84,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -114,7 +114,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -40,7 +40,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD

View File

@ -37,7 +37,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_GCS_ENABLED 1

View File

@ -36,7 +36,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD

View File

@ -75,7 +75,6 @@ define HAL_PERIPH_ENABLE_NETWORKING
# ---------------------------------------------------------------------------------------------
# AP_Periph - boiler-plate configurations that all HW AP-Periph need
# ---------------------------------------------------------------------------------------------
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD
#define HAL_NO_GPIO_IRQ
define HAL_DISABLE_LOOP_DELAY

View File

@ -27,7 +27,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD

View File

@ -64,7 +64,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE
# avoid timer and RCIN threads to save memory
define HAL_NO_RCIN_THREAD
define HAL_NO_GPIO_IRQ
define DISABLE_SERIAL_ESC_COMM TRUE
PB13 VBUS INPUT OPENDRAIN

View File

@ -64,7 +64,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE
# avoid timer and RCIN threads to save memory
define HAL_NO_RCIN_THREAD
define HAL_NO_GPIO_IRQ
define DISABLE_SERIAL_ESC_COMM TRUE
PB13 VBUS INPUT OPENDRAIN

View File

@ -78,7 +78,6 @@ define SERIAL_BUFFERS_SIZE 512
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -79,7 +79,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -102,7 +102,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -119,7 +119,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -43,7 +43,6 @@ define HAL_PERIPH_ADSB_BAUD_DEFAULT 0
define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY
define HAL_USE_RTC FALSE
#define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD

View File

@ -28,7 +28,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD

View File

@ -40,7 +40,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD

View File

@ -39,7 +39,6 @@ define DMA_RESERVE_SIZE 0
define HAL_DISABLE_LOOP_DELAY
define HAL_NO_MONITOR_THREAD
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_DEVICE_THREAD_STACK 768

View File

@ -87,7 +87,6 @@ define HAL_NO_GPIO_IRQ
# avoid RCIN thread to save memory
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0
define PERIPH_FW TRUE
define HAL_DISABLE_LOOP_DELAY

View File

@ -98,7 +98,6 @@ define HAL_NO_GPIO_IRQ
# avoid RCIN thread to save memory
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC TRUE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0
define HAL_DISABLE_LOOP_DELAY
define PERIPH_FW TRUE

View File

@ -101,7 +101,6 @@ define HAL_NO_RCIN_THREAD
define __FPU_PRESENT 0
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -70,7 +70,6 @@ define HAL_NO_RCIN_THREAD
define __FPU_PRESENT 0
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -49,7 +49,6 @@ define PORT_INT_REQUIRED_STACK 64
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -70,7 +70,6 @@ define HAL_NO_RCIN_THREAD
define HAL_NO_RCOUT_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -43,7 +43,6 @@ define PORT_INT_REQUIRED_STACK 64
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -120,7 +120,6 @@ define __FPU_PRESENT 0
define HAL_USE_RTC FALSE
define HAL_NO_FLASH_SUPPORT TRUE
define HAL_NO_UARTDRIVER TRUE
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_LOGGING_ENABLED 0
define DMA_RESERVE_SIZE 0

View File

@ -131,7 +131,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE
# ---------------------------------------------------------------------------------------------
# AP_Periph - boiler-plate configurations that all HW AP-Periph need
# ---------------------------------------------------------------------------------------------
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD
#define HAL_NO_GPIO_IRQ
define HAL_DISABLE_LOOP_DELAY

View File

@ -96,7 +96,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0

View File

@ -317,6 +317,10 @@
#define AP_SCRIPTING_ENABLED 0
#endif
#ifndef HAL_SERIAL_ESC_COMM_ENABLED
#define HAL_SERIAL_ESC_COMM_ENABLED 0
#endif
#ifndef HAL_WITH_ESC_TELEM
#define HAL_WITH_ESC_TELEM 0
#endif