diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-11-28 23:53:05 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-11-28 23:53:05 +0100 |
commit | acce7d8e05ac38776d6340342f6a7868df4f7f28 (patch) | |
tree | c0e2f3934b82967e4c2aff4a3dfcc5802bc94232 /fw/fe310/eos/uart.c | |
parent | 0b0972ce96a59fb9b59c0b166e0174ba4d8dd198 (diff) |
lcd driver added; fixed startup code;
Diffstat (limited to 'fw/fe310/eos/uart.c')
-rw-r--r-- | fw/fe310/eos/uart.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/fe310/eos/uart.c b/fw/fe310/eos/uart.c index 4c8adba..7c676ba 100644 --- a/fw/fe310/eos/uart.c +++ b/fw/fe310/eos/uart.c @@ -34,7 +34,7 @@ static void uart_handle_intr(void) { } } -void eos_uart_init(uint8_t wakeup_cause) { +int eos_uart_init(uint8_t wakeup_cause) { int i; for (i=0; i<EOS_UART_MAX_ETYPE; i++) { @@ -42,6 +42,8 @@ void eos_uart_init(uint8_t wakeup_cause) { } eos_evtq_set_handler(EOS_EVT_UART, uart_handle_evt); eos_intr_set(INT_UART0_BASE, IRQ_PRIORITY_UART, uart_handle_intr); + + return EOS_OK; } void eos_uart_set_handler(unsigned char type, eos_uart_handler_t handler) { |