20260324
This commit is contained in:
23
IAPV1.1/Driver/pwr_ctrl/pwr_ctrl.c
Normal file
23
IAPV1.1/Driver/pwr_ctrl/pwr_ctrl.c
Normal file
@ -0,0 +1,23 @@
|
||||
#include "pwr_ctrl.h" //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>ͷ<EFBFBD>ļ<EFBFBD>
|
||||
#include "delay.h" //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>ͷ<EFBFBD>ļ<EFBFBD>
|
||||
#include "pbdata.h"
|
||||
/*-------------------------------------------------*/
|
||||
|
||||
|
||||
/*------------------------------------------------*/
|
||||
void PWR_CTRL_Init(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE); //ʹ<><CAB9>PB<50>˿<EFBFBD>ʱ<EFBFBD><CAB1>
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; //<2F><><EFBFBD><EFBFBD>
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; //<2F><><EFBFBD><EFBFBD>
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_400KHz; //IO<49><4F><EFBFBD>ٶ<EFBFBD>Ϊ400KHz
|
||||
GPIO_Init(GPIOA, &GPIO_InitStructure);
|
||||
PWR_CTRLTFWF_L;//<2F>ر<EFBFBD>WIFI<46><49>TF<54><46><EFBFBD><EFBFBD>Դ
|
||||
PWR_CTRL3V3_L;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user