summaryrefslogtreecommitdiff
path: root/src/stmf0
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2018-10-08 17:49:47 -0600
committerBdale Garbee <bdale@gag.com>2018-10-08 17:49:47 -0600
commit34658a1236e34891b41a0a51a480717db98779e7 (patch)
tree1e29cdc000c50e4f01e5c54aa69befd8e6919524 /src/stmf0
parent3a2a5a05bb6372d9003905cee7afdfcd6d38ae7e (diff)
parent88ae4c5ebd64215f05f5efc18f9660560b409ace (diff)
Merge branch 'master' into branch-1.8
Diffstat (limited to 'src/stmf0')
-rw-r--r--src/stmf0/ao_serial_stm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stmf0/ao_serial_stm.c b/src/stmf0/ao_serial_stm.c
index 59cfde2e..5097041a 100644
--- a/src/stmf0/ao_serial_stm.c
+++ b/src/stmf0/ao_serial_stm.c
@@ -56,14 +56,14 @@ _ao_usart_cts(struct ao_stm_usart *usart)
#endif
static void
-_ao_usart_rx(struct ao_stm_usart *usart, int stdin)
+_ao_usart_rx(struct ao_stm_usart *usart, int is_stdin)
{
if (usart->reg->isr & (1 << STM_USART_ISR_RXNE)) {
usart->reg->icr = (1 << STM_USART_ICR_ORECF);
if (!ao_fifo_full(usart->rx_fifo)) {
ao_fifo_insert(usart->rx_fifo, usart->reg->rdr);
ao_wakeup(&usart->rx_fifo);
- if (stdin)
+ if (is_stdin)
ao_wakeup(&ao_stdin_ready);
#if HAS_SERIAL_SW_FLOW
/* If the fifo is nearly full, turn off RTS and wait
@@ -81,9 +81,9 @@ _ao_usart_rx(struct ao_stm_usart *usart, int stdin)
}
static void
-ao_usart_isr(struct ao_stm_usart *usart, int stdin)
+ao_usart_isr(struct ao_stm_usart *usart, int is_stdin)
{
- _ao_usart_rx(usart, stdin);
+ _ao_usart_rx(usart, is_stdin);
if (!_ao_usart_tx_start(usart))
usart->reg->cr1 &= ~(1<< STM_USART_CR1_TXEIE);