commit | ab2c64cc7656c8e6da9389e51f9b88270dd5a998 | [log] [tgz] |
---|---|---|
author | Ein Terakawa <applause@elfmimi.jp> | Wed Aug 16 10:23:27 2017 +0000 |
committer | Damien George <damien.p.george@gmail.com> | Mon Aug 21 22:50:07 2017 +1000 |
tree | 2f7534e2c9245df9e5d798fb240e41739f89fffe | |
parent | 1c6b442d3283b91ad9a83add9226f0e0ea2baff2 [diff] [blame] |
esp8266: Fix UART stop bit constants. As per the "ESP8266 Technical Reference".
diff --git a/esp8266/uart.h b/esp8266/uart.h index ebcd8b0..684689a 100644 --- a/esp8266/uart.h +++ b/esp8266/uart.h
@@ -14,9 +14,9 @@ } UartBitsNum4Char; typedef enum { - UART_ONE_STOP_BIT = 0, - UART_ONE_HALF_STOP_BIT = BIT2, - UART_TWO_STOP_BIT = BIT2 + UART_ONE_STOP_BIT = 0x1, + UART_ONE_HALF_STOP_BIT = 0x2, + UART_TWO_STOP_BIT = 0x3 } UartStopBitsNum; typedef enum {