> 其他 >
GPIO_InitTypeDef GPIO_InitStructure;这句话什么意思
人气:115 ℃ 时间:2020-09-01 05:10:10
解答
声明一个结构体,名字是GPIO_InitStructure,结构体原型由GPIO_InitTypeDef 确定,
stm32里面初始化GPIO用的吧.设置完了GPIO_InitStructure里面的内容后
在GPIO_Init (GPIO_TypeDef *GPIOx,GPIO_InitTypeDef *GPIO_InitStruct)里面调用,
比如初始化pa口,就是
GPIO_Init (GPIOA,&GPIO_InitStructure),括号里后面那个就是你问题里面声明的那个结构体
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版