22 lines
522 B
C
22 lines
522 B
C
#ifndef _JJ_BLUETEETH_H_
|
|
#define _JJ_BLUETEETH_H_
|
|
|
|
#include "stdio.h"
|
|
#include "zf_driver_uart.h"
|
|
|
|
#define BT_UART_INDEX UART_7
|
|
#define BT_UART_BAUDRATE 115200
|
|
#define BT_UART_TX_PIN UART7_MAP1_TX_A6
|
|
#define BT_UART_RX_PIN UART7_MAP1_RX_A7
|
|
|
|
extern bool bt_rx_flag;
|
|
extern uint8_t bt_buffer; // 接收字符存入
|
|
extern uint8_t bt_run_flag;
|
|
extern uint8_t bt_fly_flag;
|
|
extern uint32_t bt_run;
|
|
extern float bt_fly;
|
|
|
|
void jj_bt_init();
|
|
void jj_bt_run();
|
|
void bt_printf(const char *format, ...);
|
|
#endif |