refactor(uart): remove UART_FIFO_LEN macro for v6.0

This commit is contained in:
Song Ruo Jing
2025-08-05 17:08:32 +08:00
parent 6bfdc93593
commit c6dad68e81
3 changed files with 10 additions and 4 deletions

View File

@@ -7,7 +7,6 @@
#pragma once
#include "esp_err.h"
#include "esp_intr_alloc.h"
#include "soc/soc_caps.h"
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
@@ -23,7 +22,6 @@ extern "C" {
*/
#define UART_PIN_NO_CHANGE (-1)
#define UART_FIFO_LEN _Pragma ("GCC warning \"'UART_FIFO_LEN' macro is deprecated, please use 'UART_HW_FIFO_LEN' instead\"") SOC_UART_FIFO_LEN ///< Length of the HP UART HW FIFO
#if (SOC_UART_LP_NUM >= 1)
#define UART_HW_FIFO_LEN(uart_num) ((uart_num < SOC_UART_HP_NUM) ? SOC_UART_FIFO_LEN : SOC_LP_UART_FIFO_LEN) ///< Length of the UART HW FIFO
#else
@@ -95,8 +93,6 @@ typedef struct {
/*!< If the event is caused by FIFO-full interrupt, then there will be no event with the timeout flag before the next byte coming.*/
} uart_event_t;
typedef intr_handle_t uart_isr_handle_t;
/**
* @brief Install UART driver and set the UART to the default configuration.
*