summaryrefslogtreecommitdiff
path: root/src/stm/ao_arch_funcs.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-01-19 23:53:27 -0800
committerKeith Packard <keithp@keithp.com>2016-04-25 11:49:16 -0400
commit7c9a111ac1c88467ce28e03b4a9d3eabc9d7015b (patch)
tree60149978869c88be338068d07be470a70c162f56 /src/stm/ao_arch_funcs.h
parenteee2ca7fa7fd77be8ca5806cad7e250053465048 (diff)
altos: Use TXE instead of TC for serial on STM32l
Using TXE allows for full-speed communication, rather than waiting for each byte to be transmitted before inserting the next into the queue. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_arch_funcs.h')
-rw-r--r--src/stm/ao_arch_funcs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h
index f1d17ed1..6fcfd5f8 100644
--- a/src/stm/ao_arch_funcs.h
+++ b/src/stm/ao_arch_funcs.h
@@ -284,6 +284,8 @@ struct ao_stm_usart {
struct ao_fifo tx_fifo;
struct stm_usart *reg;
uint8_t tx_started;
+ uint8_t tx_running;
+ uint8_t draining;
};
#if HAS_SERIAL_1