UART echo app (#831)

* HAL: add context to UART IRQ's
* Apps: uart echo/log application
* Sync api
* Another api sync
This commit is contained in:
SG
2021-11-20 08:19:31 +10:00
committed by GitHub
parent 4303945748
commit 013ed64cbb
10 changed files with 498 additions and 107 deletions

View File

@@ -24,7 +24,7 @@ void furi_hal_console_init() {
}
void furi_hal_console_enable() {
furi_hal_uart_set_irq_cb(FuriHalUartIdUSART1, NULL);
furi_hal_uart_set_irq_cb(FuriHalUartIdUSART1, NULL, NULL);
while (!LL_USART_IsActiveFlag_TC(USART1));
furi_hal_uart_set_br(FuriHalUartIdUSART1, CONSOLE_BAUDRATE);
furi_hal_console_alive = true;