altos/stmf0: Add USART support
[fw/altos] / src / stmf0 / ao_arch_funcs.h
index 8b6234c4e995709da15b1df949b1daf4fc7122fb..d35bafbde1dbb87b76ddaa0d0d67dac657343697 100644 (file)
@@ -314,7 +314,18 @@ struct ao_stm_usart {
        struct ao_fifo          rx_fifo;
        struct ao_fifo          tx_fifo;
        struct stm_usart        *reg;
-       uint8_t                 tx_started;
+       uint8_t                 tx_running;
+       uint8_t                 draining;
+#if HAS_SERIAL_SW_FLOW
+       /* RTS - 0 if we have FIFO space, 1 if not
+        * CTS - 0 if we can send, 0 if not
+        */
+       struct stm_gpio         *gpio_rts;
+       struct stm_gpio         *gpio_cts;
+       uint8_t                 pin_rts;
+       uint8_t                 pin_cts;
+       uint8_t                 rts;
+#endif
 };
 
 #if HAS_SERIAL_1