22 lines
525 B
C
22 lines
525 B
C
#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_t bt_buffer; // 接收字符存入
|
|
extern uint8_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, ...);
|
|
#endif |