summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/soc/uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/soc/uart.h')
-rw-r--r--fw/fe310/eos/soc/uart.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fw/fe310/eos/soc/uart.h b/fw/fe310/eos/soc/uart.h
index 474942d..93866af 100644
--- a/fw/fe310/eos/soc/uart.h
+++ b/fw/fe310/eos/soc/uart.h
@@ -1,5 +1,7 @@
#include <stdint.h>
+#include "../event.h"
+
#define EOS_UART_ETYPE_TX 1
#define EOS_UART_ETYPE_RX 2
@@ -7,8 +9,6 @@
#define EOS_UART_SPEED 115200
-typedef void (*eos_uart_handler_t) (unsigned char);
-
void eos_uart_preinit(void);
int eos_uart_init(void);
void eos_uart_enable(void);
@@ -16,7 +16,7 @@ void eos_uart_disable(void);
int eos_uart_enabled(void);
void eos_uart_speed(uint32_t baud_rate);
-void eos_uart_set_handler(unsigned char type, eos_uart_handler_t handler);
+void eos_uart_set_handler(unsigned char type, eos_evt_simple_handler_t handler);
void eos_uart_txwm_set(uint8_t wm);
void eos_uart_txwm_clear(void);