diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-10-29 15:07:56 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-30 12:42:43 -0700 |
commit | d5ade1b2ed426ae2a7bd0d69ab462f76faa25c66 (patch) | |
tree | c83422bb9ea4554641da6c2548027c5c3d6df180 /chip/stm32 | |
parent | bda48fc5dbd2d34b6d29b39c151095f661bec63a (diff) | |
download | chrome-ec-d5ade1b2ed426ae2a7bd0d69ab462f76faa25c66.tar.gz |
Clean up UART module
And change some direct uart_printf()/uart_puts() output to console
output methods instead. Disable unused comxtest debug command. No
other functional changes.
BUG=chrome-os-partner:15579
BRANCH=none
TEST=boot system; should still see debug output with reset flags
Change-Id: I57fe6bb781a1ba7884afa6d090b74a92f45a53cc
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36835
Diffstat (limited to 'chip/stm32')
-rw-r--r-- | chip/stm32/uart.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chip/stm32/uart.c b/chip/stm32/uart.c index 77e0ba2668..2cd661d9e4 100644 --- a/chip/stm32/uart.c +++ b/chip/stm32/uart.c @@ -112,7 +112,7 @@ static void uart_interrupt(void) } DECLARE_IRQ(STM32_IRQ_USART(UARTN), uart_interrupt, 2); -int uart_init(void) +void uart_init(void) { /* Enable USART clock */ if (UARTN == 1) @@ -146,6 +146,4 @@ int uart_init(void) task_enable_irq(STM32_IRQ_USART(UARTN)); init_done = 1; - - return EC_SUCCESS; } |