增加协议 发送队列 50ms发送数据
“ ”
This commit is contained in:
20
BSP/Src/IoControl.c
Normal file
20
BSP/Src/IoControl.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "IoControl.h"
|
||||
|
||||
#include "Include.h"
|
||||
|
||||
void led_init(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOE, ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
|
||||
|
||||
GPIO_Init(GPIOE, &GPIO_InitStructure);
|
||||
GPIO_SetBits(GPIOE, GPIO_Pin_2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user