#include "stm32f10x.h"
#include "led.h"
int main()
{
LED_Init();
while(1)
{
GPIO_SetBits(GPIOD,GPIO_Pin_6);
}
#include "led.h"
int main()
{
LED_Init();
while(1)
{
GPIO_SetBits(GPIOD,GPIO_Pin_6);
}
}
Runtime warning: warning: #223-D: function "LED_Init" declared implicitly
Solution: Declare the function void LED_Init(void); in the header file.