GeBalanceBot/Hardware/Firmware/GeBalanceBot_Firmware v1.0 .../HARDWARE/MOTO/bluetooth.h

36 lines
1.2 KiB
C
Raw Normal View History

2024-01-18 01:55:04 +08:00
#ifndef __BLUETOOTH_H
#define __BLUETOOTH_H
#include "bsp_sys.h"
#include "stm32f10x.h"
/**----------------------------------------------------------------------
* Function : Bluetooth_Init
* Description : <EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,PA2->RXD, PA3->TXD, boundΪ<EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* Author : zhanli&719901725@qq.com
* Date : 2023/05/20 zhanli
*---------------------------------------------------------------------**/
void Bluetooth_Init(u32 bound);
/**----------------------------------------------------------------------
* Function : USART2_Send
* Description : <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>USART2<EFBFBD><EFBFBD><EFBFBD>͵<EFBFBD><EFBFBD>ֻ<EFBFBD>
* Author : zhanli&719901725@qq.com
* Date : 2023/05/20 zhanli
*---------------------------------------------------------------------**/
void USART2_Send(unsigned char *tx_buf, int len);
/**----------------------------------------------------------------------
* Function : USART2_Receive
* Description : <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* Author : zhanli&719901725@qq.com
* Date : 2023/05/20 zhanli
*---------------------------------------------------------------------**/
void USART2_Receive(unsigned char *rx_buf, int len);
void USART2_SendStr(unsigned char *tx_buf);
void PB_USART_printf(USART_TypeDef* USARTx, uint8_t *Data,...);
#endif