中级会员
 
- 积分
- 244
- 金钱
- 244
- 注册时间
- 2011-12-29
- 在线时间
- 1 小时
|

楼主 |
发表于 2012-4-1 10:34:56
|
显示全部楼层
解决了
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA , ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init(GPIOA, &GPIO_InitStructure);
GPIO_SetBits(GPIOA, GPIO_Pin_1); |
|