#include "STM32f10x.h"
#include "led.h"
......
省略
......
int main()
{
RCC_HSE_Config(RCC_PLLSource_HSE_Div2,RCC_PLLMul_9); //36M
LED_Init();
while(1)
{
GPIO_ResetBits(LED_PORT,GPIO_Pin_0);//μãááD1
delay(6000000);
GPIO_SetBits(LED_PORT,GPIO_Pin_0);
delay(6000000);
}
}
LED_Init();在led.c中定义,为什么引用led.h就能用LED_Init();? |