diff options
author | SG <who.just.the.doctor@gmail.com> | 2021-11-20 01:19:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-20 01:19:31 +0300 |
commit | 013ed64cbbb6ba0a97958a7e7e96bfc667bda176 (patch) | |
tree | bc84670721a0cdbe92fde465038d7f6ab2ee69fb /applications/gpio | |
parent | 4303945748d62a0563d62a5d5ddb5d470715d3d3 (diff) |
UART echo app (#831)
* HAL: add context to UART IRQ's
* Apps: uart echo/log application
* Sync api
* Another api sync
Diffstat (limited to 'applications/gpio')
-rw-r--r-- | applications/gpio/usb_uart_bridge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/gpio/usb_uart_bridge.c b/applications/gpio/usb_uart_bridge.c index 9b43f643..99fe62eb 100644 --- a/applications/gpio/usb_uart_bridge.c +++ b/applications/gpio/usb_uart_bridge.c @@ -57,7 +57,7 @@ static CdcCallbacks cdc_cb = { static int32_t usb_uart_tx_thread(void* context); -static void usb_uart_on_irq_cb(UartIrqEvent ev, uint8_t data) { +static void usb_uart_on_irq_cb(UartIrqEvent ev, uint8_t data, void* context) { BaseType_t xHigherPriorityTaskWoken = pdFALSE; if(ev == UartIrqEventRXNE) { @@ -94,10 +94,10 @@ static int32_t usb_uart_worker(void* context) { furi_hal_console_disable(); } else if(usb_uart->cfg.uart_ch == FuriHalUartIdLPUART1) { furi_hal_uart_init(usb_uart->cfg.uart_ch, 115200); - furi_hal_uart_set_irq_cb(usb_uart->cfg.uart_ch, usb_uart_on_irq_cb); + furi_hal_uart_set_irq_cb(usb_uart->cfg.uart_ch, usb_uart_on_irq_cb, NULL); } - furi_hal_uart_set_irq_cb(usb_uart->cfg.uart_ch, usb_uart_on_irq_cb); + furi_hal_uart_set_irq_cb(usb_uart->cfg.uart_ch, usb_uart_on_irq_cb, NULL); if(usb_uart->cfg.baudrate != 0) furi_hal_uart_set_br(usb_uart->cfg.uart_ch, usb_uart->cfg.baudrate); else |