更新 'USER/Led/Led.h'
更改宏定义错误
This commit is contained in:
parent
91a36edc62
commit
4b6f0a164d
@ -12,16 +12,16 @@
|
||||
#define LED_PORT GPIOA
|
||||
#define LED_CLOCK RCC_APB2Periph_GPIOA
|
||||
|
||||
//系统状态指示灯
|
||||
//系统状态指示灯
|
||||
#define LED_SYS_Pin GPIO_Pin_11
|
||||
#define LED_SYS_PORT GPIOA
|
||||
#define LED_CLOCK RCC_APB2Periph_GPIOA
|
||||
#define LED_SYS_CLOCK RCC_APB2Periph_GPIOA
|
||||
|
||||
//函数声明
|
||||
//函数声明
|
||||
#define LED_SYS_ON() GPIO_ResetBits(LED_SYS_PORT,LED_SYS_Pin)
|
||||
#define LED_SYS_OFF() GPIO_SetBits(LED_SYS_PORT,LED_SYS_Pin)
|
||||
void LED_GPIO_INIT(void);//LED GPIO初始化
|
||||
void LED_ON(u8 n);//点亮指定LED LED0,1,2,3
|
||||
void LED_OFF(void);//关闭所有LED
|
||||
void LED_GPIO_INIT(void);//LED GPIO初始化
|
||||
void LED_ON(u8 n);//点亮指定LED LED0,1,2,3
|
||||
void LED_OFF(void);//关闭所有LED
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user