STM32 Keil:warning: #223-D: function "LED_Init" declared implicitly

#include "stm32f10x.h"
#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.


Guess you like

Origin blog.csdn.net/qq_33231534/article/details/79138720