summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/soc/uart.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2026-01-07 22:58:33 +0100
committerUros Majstorovic <majstor@majstor.org>2026-01-07 22:58:33 +0100
commit46b08fc235f3f068034355970697acc0956e5c99 (patch)
tree96e2bde5d95c295a57afae353684a25544fb09fa /fw/fe310/eos/soc/uart.h
parent285ddd410a559449b7e2cbab9b2b10e850efbd08 (diff)
introduced EOSMessage struct for SPI and Event queue messages; added APP <-> FE310 bridge SPI messages; LCD/touch panel driver for app module; save relevant state to AON module before sleep;
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);