RobotHardware-UESTC/Hardware/Firmware/GeekRobotBig_Firmware v1.0/HARDWARE/MOTO/bluetooth.h

32 lines
1.1 KiB
C
Raw Normal View History

2024-01-18 02:06:22 +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);
#endif