led_flowing.h
#ifndef __LED_H
#define __LED_H
#include "stm32f4xx.h"
#include "led_key.h"
//void led_init(void);
void led_ctrl(int led_n);
void delay(int num);
void led_loop(void);
#endif
led_flowing.c
#include "led_flowing.h"
#include "systick.h"
void led_init(void)
{
GPIO_InitTypeDef P;
//使能GPIOD的时钟
RCC_APB2PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE);
//配置PD0-3为推挽输出,速率为50MHz&