summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEin Terakawa <applause@elfmimi.jp>2017-08-16 10:23:27 +0000
committerDamien George <damien.p.george@gmail.com>2017-08-21 22:50:07 +1000
commitab2c64cc7656c8e6da9389e51f9b88270dd5a998 (patch)
tree2f7534e2c9245df9e5d798fb240e41739f89fffe
parent1c6b442d3283b91ad9a83add9226f0e0ea2baff2 (diff)
esp8266: Fix UART stop bit constants.
As per the "ESP8266 Technical Reference".
-rw-r--r--esp8266/uart.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/esp8266/uart.h b/esp8266/uart.h
index ebcd8b051..684689a0e 100644
--- a/esp8266/uart.h
+++ b/esp8266/uart.h
@@ -14,9 +14,9 @@ typedef enum {
} 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 {