summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/uart.c')
-rw-r--r--fw/fe310/eos/uart.c4
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) {