diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-01-28 19:25:20 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-01-28 19:25:20 +0100 |
commit | 15bddabc5cbe0e751fadcaaa7f7c7c36bca61331 (patch) | |
tree | f1c1351a9ed0acb426914ee92cd7b2b917fd9ee4 /code/fe310/eos/uart.c | |
parent | 445d72abf487dc325ccbde1e3a12d1c4cf695a6a (diff) |
eve logng press event added
Diffstat (limited to 'code/fe310/eos/uart.c')
-rw-r--r-- | code/fe310/eos/uart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/fe310/eos/uart.c b/code/fe310/eos/uart.c index 88931ab..95c9057 100644 --- a/code/fe310/eos/uart.c +++ b/code/fe310/eos/uart.c @@ -41,7 +41,7 @@ void eos_uart_init(void) { for (i=0; i<EOS_UART_MAX_ETYPE; i++) { uart_handler[i] = NULL; } - eos_evtq_set_handler(EOS_EVT_UART, uart_handler_evt); + eos_evtq_set_handler(EOS_EVT_UART, uart_handler_evt, 0); eos_intr_set(INT_UART0_BASE, IRQ_PRIORITY_UART, uart_handler_intr); } @@ -53,7 +53,7 @@ void eos_uart_set_handler(unsigned char type, eos_uart_fptr_t handler, uint8_t f } uart_handler[type] = handler; - if (flags) eos_evtq_set_flags(EOS_EVT_UART | type + 1, flags); + eos_evtq_set_hflags(EOS_EVT_UART | type + 1, flags); } void eos_uart_txwm_set(uint8_t wm) { |