初级会员

- 积分
- 186
- 金钱
- 186
- 注册时间
- 2014-7-7
- 在线时间
- 0 小时
|
5金钱
在F1中把IO口配置为浮空输入是这样的:
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;//100M
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;//IO???ü??????
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7;
GPIO_Init(GPIOB,&GPIO_InitStructure);
那么在F4中时这样吗?
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStructure.GPIO_Speed =GPIO_Speed_50MHz;
GPIO_Init(GPIOB,&GPIO_InitStructure);
|
|