AP_HAL: replace HAL_NO_UARTDRIVER with AP_HAL_UARTDRIVER_ENABLED

This commit is contained in:
Peter Barker 2025-01-07 15:19:14 +11:00 committed by Andrew Tridgell
parent f29e2cb19c
commit c1c438d5bd
2 changed files with 5 additions and 1 deletions

View File

@ -206,6 +206,10 @@
#define HAL_WITH_DSP HAL_GYROFFT_ENABLED
#endif
#ifndef AP_HAL_UARTDRIVER_ENABLED
#define AP_HAL_UARTDRIVER_ENABLED 1
#endif
#ifndef HAL_OS_FATFS_IO
#define HAL_OS_FATFS_IO 0
#endif

View File

@ -7,7 +7,7 @@
#include <AP_Logger/AP_Logger_config.h>
#ifndef HAL_UART_STATS_ENABLED
#define HAL_UART_STATS_ENABLED !defined(HAL_NO_UARTDRIVER)
#define HAL_UART_STATS_ENABLED AP_HAL_UARTDRIVER_ENABLED
#endif
#ifndef AP_UART_MONITOR_ENABLED