代码摘要:
//设置指定的数据端口位
GPIO_SetBits(GPIOB, GPIO_Pin_12);
delay();
//清除指定的数据端口位
GPIO_ResetBits(GPIOB, GPIO_Pin_12);
GPIO_SetBits(GPIOB, GPIO_Pin_13);
delay();
GPIO_ResetBits(GPIOB, GPIO_Pin_13);
GPIO_SetBits(GPIOB, GPIO_Pin_14);
delay();
GPIO_ResetBits(GPIOB, GPIO_Pin_14);
GPIO_SetBits(GPIOB, GPIO_Pin_15);
delay();
GPIO_ResetBits(GPIOB, GPIO_Pin_15);
|