初级会员

- 积分
- 111
- 金钱
- 111
- 注册时间
- 2015-6-15
- 在线时间
- 21 小时
|
GPIO_InitStructure.GPIO_Pin=GPIO_Pin_9;
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_AF_PP;
GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;
GPIO_Init(GPIOA,&GPIO_InitStructure);
为什么 GPIO_Init(GPIOA,&GPIO_InitStructure);要在前三行的后面,而不能在他们的前面,就像这样:
GPIO_Init(GPIOA,&GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin=GPIO_Pin_9;
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_AF_PP;
GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;
我试了一下,编译没问题,但是运行起来没反应。
|
|