添加按键高阻态、使飞控进入BOOT、擦除flash

This commit is contained in:
OPTOC
2025-10-21 16:18:57 +08:00
parent 88dadb4f0e
commit 793817d00e
5 changed files with 41 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ uint8_t device_init(device_t *port)
uint8_t uart_init(init_device_t *port)
{
// port->uart_port = sb_uart_port_bind(g_cfg_board->uart_fc.id, g_cfg_board->uart_fc.br, g_cfg_board->uart_fc.pin_txd.pin, g_cfg_board->uart_fc.pin_rxd.pin, g_cfg_board->uart_fc.irq_prior, 1024, 0, NULL);
port->uart_port = sb_uart_port_bind(1, 115200, 21, 20, 21, 1024, 0, NULL);
port->uart_port = sb_uart_port_bind(1, 115200, 21, 20, 21, 2048, 0, NULL);
if(port->uart_port == NULL)
{