資源簡介
STM32 串口3進行AT指令BLE模塊測試,串口1狀態打印,STM32 串口3進行AT指令BLE模塊測試,串口1狀態打印
代碼片段和文件信息
#include?“delay.h“
#include?“usart.h“?
#include?“usart3.h“?
#include?“BLE.h“
#include?“string.h“
int?BLEinit_finish=0;
u16?lentin;
u8?SSID_buf[17]PSD_buf[17];
u8?SSID[17]PSD[17];
u8?Wifi_SSID[17]Wifi_PSD[17];
void?BLE_init(void)
{
int?cases=0;
GPIO_InitTypeDef??GPIO_InitStructure;
?
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB?ENABLE); ?//使能端口時鐘
GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_0; ??????//連接狀態引腳P16
GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_IN_FLOATING;?
GPIO_Init(GPIOB?&GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_7; ??????//連接狀態引腳P01
GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz;
GPIO_Init(GPIOA?&GPIO_InitStructure);
GPIO_SetBits(GPIOAGPIO_Pin_7);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4266??2018-12-14?15:31??code\BLE\BLE.c
?????文件????????232??2018-12-12?14:27??code\BLE\BLE.h
?????文件???????7996??2018-12-12?14:55??code\USART2\usart2.c
?????文件???????1280??2018-12-12?14:53??code\USART2\usart2.h
?????目錄??????????0??2018-12-14?15:33??code\BLE
?????目錄??????????0??2018-12-14?15:33??code\USART2
?????目錄??????????0??2018-12-14?15:33??code
-----------?---------??----------?-----??----
????????????????13774????????????????????7
- 上一篇:rbm正規代碼確保正確
- 下一篇:相關系數fortran程序
評論
共有 條評論