/home/runner/work/_temp/app/code/uart.c:9:5: error: unknown type name 'FuriHalUartId' 9 | FuriHalUartId channel; | ^~~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c:30:21: error: unknown type name 'UartIrqEvent' 30 | void uart_on_irq_cb(UartIrqEvent ev, uint8_t data, void* context) { | ^~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c: In function 'uart_worker': /home/runner/work/_temp/app/code/uart.c:3:18: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'? 3 | #define UART_CH (FuriHalUartIdUSART1) | ^~~~~~~~~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c:99:33: note: in expansion of macro 'UART_CH' 99 | if(uart->channel == UART_CH) { | ^~~~~~~ /home/runner/work/_temp/app/code/uart.c:3:18: note: each undeclared identifier is reported only once for each function it appears in 3 | #define UART_CH (FuriHalUartIdUSART1) | ^~~~~~~~~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c:99:33: note: in expansion of macro 'UART_CH' 99 | if(uart->channel == UART_CH) { | ^~~~~~~ /home/runner/work/_temp/app/code/uart.c:4:21: error: 'FuriHalUartIdLPUART1' undeclared (first use in this function); did you mean 'FuriHalBusLPUART1'? 4 | #define LP_UART_CH (FuriHalUartIdLPUART1) | ^~~~~~~~~~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c:112:40: note: in expansion of macro 'LP_UART_CH' 112 | } else if(uart->channel == LP_UART_CH) { | ^~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c: In function 'uart_tx': /home/runner/work/_temp/app/code/uart.c:128:5: error: implicit declaration of function 'furi_hal_uart_tx'; did you mean 'furi_hal_i2c_tx'? [-Werror=implicit-function-declaration] 128 | furi_hal_uart_tx(UART_CH, data, len); | ^~~~~~~~~~~~~~~~ | furi_hal_i2c_tx /home/runner/work/_temp/app/code/uart.c:3:18: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'? 3 | #define UART_CH (FuriHalUartIdUSART1) | ^~~~~~~~~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c:128:22: note: in expansion of macro 'UART_CH' 128 | furi_hal_uart_tx(UART_CH, data, len); | ^~~~~~~ /home/runner/work/_temp/app/code/uart.c: In function 'lp_uart_tx': /home/runner/work/_temp/app/code/uart.c:4:21: error: 'FuriHalUartIdLPUART1' undeclared (first use in this function); did you mean 'FuriHalBusLPUART1'? 4 | #define LP_UART_CH (FuriHalUartIdLPUART1) | ^~~~~~~~~~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c:132:22: note: in expansion of macro 'LP_UART_CH' 132 | furi_hal_uart_tx(LP_UART_CH, data, len); | ^~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c: At top level: /home/runner/work/_temp/app/code/uart.c:135:29: error: unknown type name 'FuriHalUartId'; did you mean 'FuriHalSerialId'? 135 | Uart* _uart_init(void* app, FuriHalUartId channel, const char* thread_name) { | ^~~~~~~~~~~~~ | FuriHalSerialId /home/runner/work/_temp/app/code/uart.c: In function 'usart_init': /home/runner/work/_temp/app/code/uart.c:159:12: error: implicit declaration of function '_uart_init'; did you mean 'lp_uart_init'? [-Werror=implicit-function-declaration] 159 | return _uart_init(app, UART_CH, "UartRxThread"); | ^~~~~~~~~~ | lp_uart_init /home/runner/work/_temp/app/code/uart.c:3:18: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'? 3 | #define UART_CH (FuriHalUartIdUSART1) | ^~~~~~~~~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c:159:28: note: in expansion of macro 'UART_CH' 159 | return _uart_init(app, UART_CH, "UartRxThread"); | ^~~~~~~ /home/runner/work/_temp/app/code/uart.c: In function 'lp_uart_init': /home/runner/work/_temp/app/code/uart.c:4:21: error: 'FuriHalUartIdLPUART1' undeclared (first use in this function); did you mean 'FuriHalBusLPUART1'? 4 | #define LP_UART_CH (FuriHalUartIdLPUART1) | ^~~~~~~~~~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c:163:28: note: in expansion of macro 'LP_UART_CH' 163 | return _uart_init(app, LP_UART_CH, "LPUartRxThread"); | ^~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c: In function 'uart_free': /home/runner/work/_temp/app/code/uart.c:173:5: error: implicit declaration of function 'furi_hal_uart_set_irq_cb' [-Werror=implicit-function-declaration] 173 | furi_hal_uart_set_irq_cb(uart->channel, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/runner/work/_temp/app/code/uart.c:174:25: error: 'FuriHalUartIdLPUART1' undeclared (first use in this function); did you mean 'FuriHalBusLPUART1'? 174 | if(uart->channel == FuriHalUartIdLPUART1) { | ^~~~~~~~~~~~~~~~~~~~ | FuriHalBusLPUART1 /home/runner/work/_temp/app/code/uart.c:175:9: error: implicit declaration of function 'furi_hal_uart_deinit'; did you mean 'furi_hal_usb_reinit'? [-Werror=implicit-function-declaration] 175 | furi_hal_uart_deinit(uart->channel); | ^~~~~~~~~~~~~~~~~~~~ | furi_hal_usb_reinit /home/runner/work/_temp/app/code/uart.c:177:5: error: implicit declaration of function 'furi_hal_console_enable'; did you mean 'furi_hal_usb_enable'? [-Werror=implicit-function-declaration] 177 | furi_hal_console_enable(); | ^~~~~~~~~~~~~~~~~~~~~~~ | furi_hal_usb_enable /home/runner/work/_temp/app/code/uart.c: In function 'usart_init': /home/runner/work/_temp/app/code/uart.c:160:1: error: control reaches end of non-void function [-Werror=return-type] 160 | } | ^ /home/runner/work/_temp/app/code/uart.c: In function 'lp_uart_init': /home/runner/work/_temp/app/code/uart.c:164:1: error: control reaches end of non-void function [-Werror=return-type] 164 | } | ^ At top level: /home/runner/work/_temp/app/code/uart.c:88:16: error: 'uart_worker' defined but not used [-Werror=unused-function] 88 | static int32_t uart_worker(void* context) { | ^~~~~~~~~~~ cc1: all warnings being treated as errors scons: *** [/home/runner/.ufbt/build/malveke_gb_cartridge/uart.o] Error 1 More logs: https://github.com/flipperdevices/flipper-application-catalog/actions/runs/7712493556