mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-17 10:22:01 +03:00
732b9546fc
* [FL-1984] USB-UART fixes * FuriHal: fix SOF wait on CDC0 * FuriHal: fixed stuck in UART IRQ with ORE event Co-authored-by: あく <alleteam@gmail.com>
14 lines
202 B
C
14 lines
202 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint8_t vcp_ch;
|
|
uint8_t uart_ch;
|
|
uint32_t baudrate;
|
|
} UsbUartConfig;
|
|
|
|
void usb_uart_enable(UsbUartConfig* cfg);
|
|
|
|
void usb_uart_disable();
|