feat: 增加 vofa 打印到上位机功能

This commit is contained in:
bmy
2024-03-11 20:25:14 +08:00
parent 681b47736c
commit 3bb5383c06
7 changed files with 36 additions and 14 deletions

View File

@@ -1,13 +1,21 @@
#ifndef _JJ_BLUETEETH_H_
#define _JJ_BLUETEETH_H_
#include "stdio.h"
#include "zf_driver_uart.h"
#define BT_UART_INDEX UART_8
#define BT_UART_BAUDRATE 115200
#define BT_UART_TX_PIN UART8_MAP0_TX_C4
#define BT_UART_RX_PIN UART8_MAP0_RX_C5
extern bool bt_rx_flag;
extern uint8 bt_buffer; // 接收字符存入
extern uint32_t bt_run_flag;
extern uint8_t bt_fly_flag;
extern uint32_t bt_run;
extern uint32_t bt_fly;
void jj_bt_init();
void jj_bt_run();
void bt_printf(const char *format, ...);