diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-09-10 10:09:41 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-09-11 19:46:10 +0000 |
commit | 6b1dace9f456d5b1b160402866045c3659e665e0 (patch) | |
tree | 6e63bbea7bf6ec8a601c839af64a0a40091caf13 /chip/stm32/uart.c | |
parent | eff7a1910a60b1d30b10257fd4a12b5ed1402594 (diff) | |
download | chrome-ec-6b1dace9f456d5b1b160402866045c3659e665e0.tar.gz |
Split uart_process() into input and output processing
This is a precursor to DMA-based UART transfers, which require
different processing for DMA vs PIO output types.
BUG=chrome-os-partner:20485
BRANCH=pit
TEST=Boot pit; verify EC console still works.
Change-Id: I6d6f55561eeebe9bd2928b2bfb25278c86f689d1
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/168811
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip/stm32/uart.c')
-rw-r--r-- | chip/stm32/uart.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chip/stm32/uart.c b/chip/stm32/uart.c index dab5231845..42461b2a90 100644 --- a/chip/stm32/uart.c +++ b/chip/stm32/uart.c @@ -96,7 +96,8 @@ static void uart_interrupt(void) STM32_USART_CR1(UARTN) &= ~STM32_USART_CR1_TXEIE; /* Read input FIFO until empty, then fill output FIFO */ - uart_process(); + uart_process_input(); + uart_process_output(); /* * Re-enable TX empty interrupt only if it was not disabled by |