mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-31 14:22:14 +00:00
refactor(uart): remove UART_FIFO_LEN macro for v6.0
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "esp_err.h"
|
#include "esp_err.h"
|
||||||
#include "esp_intr_alloc.h"
|
|
||||||
#include "soc/soc_caps.h"
|
#include "soc/soc_caps.h"
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/queue.h"
|
#include "freertos/queue.h"
|
||||||
@@ -23,7 +22,6 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#define UART_PIN_NO_CHANGE (-1)
|
#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)
|
#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
|
#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
|
#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.*/
|
/*!< 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;
|
} uart_event_t;
|
||||||
|
|
||||||
typedef intr_handle_t uart_isr_handle_t;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Install UART driver and set the UART to the default configuration.
|
* @brief Install UART driver and set the UART to the default configuration.
|
||||||
*
|
*
|
||||||
|
@@ -64,6 +64,11 @@ LEDC
|
|||||||
|
|
||||||
- :cpp:enumerator:`soc_periph_ledc_clk_src_legacy_t::LEDC_USE_RTC8M_CLK` has been removed. Please use ``LEDC_USE_RC_FAST_CLK`` instead.
|
- :cpp:enumerator:`soc_periph_ledc_clk_src_legacy_t::LEDC_USE_RTC8M_CLK` has been removed. Please use ``LEDC_USE_RC_FAST_CLK`` instead.
|
||||||
|
|
||||||
|
UART
|
||||||
|
----
|
||||||
|
|
||||||
|
``UART_FIFO_LEN`` macro has been removed. Please use ``UART_HW_FIFO_LEN`` instead.
|
||||||
|
|
||||||
I2C
|
I2C
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -64,6 +64,11 @@ LEDC
|
|||||||
|
|
||||||
- :cpp:enumerator:`soc_periph_ledc_clk_src_legacy_t::LEDC_USE_RTC8M_CLK` 已被移除。请使用 ``LEDC_USE_RC_FAST_CLK`` 代替。
|
- :cpp:enumerator:`soc_periph_ledc_clk_src_legacy_t::LEDC_USE_RTC8M_CLK` 已被移除。请使用 ``LEDC_USE_RC_FAST_CLK`` 代替。
|
||||||
|
|
||||||
|
UART
|
||||||
|
----
|
||||||
|
|
||||||
|
``UART_FIFO_LEN`` 已被移除。请使用 ``UART_HW_FIFO_LEN`` 代替。
|
||||||
|
|
||||||
I2C
|
I2C
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user