求问stm编程中的问题

2019-07-14 20:19发布

        RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_GPIOE,ENABLE);//使能pe,pa

        GPIO_InitStructure.GPIO_Pin  = GPIO_Pin_2|GPIO_Pin_3|GPIO_Pin_4;//PE2~4 ***
        GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; //设置为上拉输入
        GPIO_Init(GPIOE, &GPIO_InitStructure);//初始化¯GPIOE2,3,4

打星号那条语句,为什么是使能PE2~4的端口。


友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。