修改main.c如下
#include "stm32f10x.h"
#include "led.h"
#include "SysTick.h"
int main(void)
{
//LED端初始化
LED_GPIO_Config();
//配置SysTick为10us中断一次
SysTick_Init();
while(1)
{
LED1(0);
Delay_us(50000);
LED1(1);
LED2(0);
Delay_us(50000);
LED2(1);
LED3(0);
Delay_us(50000);
LED3(1);
LED4(0);
Delay_us(50000);
LED4(1);
}
}
|