STM32 GPIO初始化步骤

1、使能GPIO时钟:RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState); 参数说明: 例如: 2、设置GPIO参数:输出OR输入,工作模式,端口翻转速率; 3、调用初始化函数:GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruc
相关文章
相关标签/搜索