高等继续教育 / 嵌入式系统导论
题型描述: 编程题
如下代码是配置按键的初始化函数,阅读程序回答下面问题。
void Key_GPIO_Config(void) { GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOE,ENABLE); GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; GPIO_Init(GPIOF, &GPIO_InitStructure); }
(1)该函数是对GPIO的哪组的哪个引脚的配置?
(2)执行该函数后,被配置引脚的工作模式是什么?
参考答案:
佳题速递: