guanjiao ren
2018-05-18 7440843d3a1e108fdf78b8cfff073aa60a2a41f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
#ifndef __LED_H__
#define __LED_H__
 
#include "stm32f10x.h"
 
#define LED0_PIN                    GPIO_Pin_8
#define LED0_GPIO                    GPIOA
#define LED_BLINK(...)                GPIO_Toggle(__VA_ARGS__)
#define LED0_BLINK                    LED_BLINK(LED0_GPIO, LED0_PIN)
 
 
void Led_Init(void);
void GPIO_Toggle(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin);
 
#endif