]> granicus.if.org Git - esp-idf/commitdiff
uart driver: Move UART_EVENT_MAX to last
authorzelll <0j@zeroj.net>
Thu, 11 May 2017 13:59:50 +0000 (21:59 +0800)
committerAngus Gratton <gus@projectgus.com>
Wed, 17 May 2017 01:36:13 +0000 (11:36 +1000)
Merges https://github.com/espressif/esp-idf/pull/594

components/driver/include/driver/uart.h

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