Browse Source

uart driver: Move UART_EVENT_MAX to last

Merges https://github.com/espressif/esp-idf/pull/594
zelll 8 năm trước cách đây
mục cha
commit
0b447db8d8

+ 1 - 1
components/driver/include/driver/uart.h

@@ -129,8 +129,8 @@ typedef enum {
     UART_FRAME_ERR,         /*!< UART RX frame error event*/
     UART_FRAME_ERR,         /*!< UART RX frame error event*/
     UART_PARITY_ERR,        /*!< UART RX parity event*/
     UART_PARITY_ERR,        /*!< UART RX parity event*/
     UART_DATA_BREAK,        /*!< UART TX data and break event*/
     UART_DATA_BREAK,        /*!< UART TX data and break event*/
+    UART_PATTERN_DET,       /*!< UART pattern detected */
     UART_EVENT_MAX,         /*!< UART event max index*/
     UART_EVENT_MAX,         /*!< UART event max index*/
-    UART_PATTERN_DET,        /*!< UART pattern detected */
 } uart_event_type_t;
 } uart_event_type_t;
 
 
 /**
 /**