如何看c文件下的头文件在哪被引用?

2019-07-20 09:21发布

如图,led.c下面有很多个头文件,很多头文件我都不知道哪里被引用了?有什么办法可以知道吗,这个是原子的stm32跑马灯的例程。[mw_shl_code=applescript,true]led.c内容

#include "led.h"

void LED_Init(void)
{

GPIO_InitTypeDef  GPIO_InitStructure;
       
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_GPIOD, ENABLE);
       
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8;                                 //LED0-->PB.5
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init(GPIOA, &GPIO_InitStructure);
GPIO_SetBits(GPIOA,GPIO_Pin_8);                                                 //PB.5

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;                             //LED1-->PE.5
GPIO_Init(GPIOD, &GPIO_InitStructure);
GPIO_SetBits(GPIOD,GPIO_Pin_2);
}[/mw_shl_code]

led.h内容
[mw_shl_code=applescript,true]#ifndef __LED_H
#define __LED_H         
#include "sys.h"

#define LED0 PAout(8)        // PA8
#define LED1 PDout(2)        // PD2       

void LED_Init(void);

                                                     
#endif[/mw_shl_code]
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。