|
設(shè)置程序在下面,但不知道那里不行
void GPIO_Configuration(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
/* ÉèÖÃPB0,PB1,PB8,PB9¿ÚÎªÍÆÍìÊä³ö£¬×î´ó·­×ªÆµÂÊΪ50MHz*/
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0|GPIO_Pin_1|GPIO_Pin_8|GPIO_Pin_9;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(GPIOB , &GPIO_InitStructure);
}
|
|