Subversion Repositories NaviCtrl

Rev

Rev 41 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 264
1
#ifndef _LED_H
1
#ifndef _LED_H
2
#define _LED_H
2
#define _LED_H
3
 
3
 
4
#define LED_GRN_ON      GPIO_WriteBit(GPIO5, GPIO_Pin_6, Bit_SET)
4
extern u8 Led_Grn_Inv;
5
#define LED_GRN_OFF GPIO_WriteBit(GPIO5, GPIO_Pin_6, Bit_RESET)
-
 
-
 
5
extern u8 Led_Red_Inv;
-
 
6
 
-
 
7
#define LED_GRN_ON      {if(Led_Grn_Inv) GPIO_WriteBit(GPIO5, GPIO_Pin_6, Bit_RESET); else GPIO_WriteBit(GPIO5, GPIO_Pin_6, Bit_SET);}
-
 
8
#define LED_GRN_OFF {if(Led_Grn_Inv) GPIO_WriteBit(GPIO5, GPIO_Pin_6, Bit_SET);   else GPIO_WriteBit(GPIO5, GPIO_Pin_6, Bit_RESET);}
6
#define LED_GRN_TOGGLE  if (GPIO_ReadBit(GPIO5, GPIO_Pin_6)) LED_GRN_OFF; else LED_GRN_ON;
9
#define LED_GRN_TOGGLE  if (GPIO_ReadBit(GPIO5, GPIO_Pin_6)) GPIO_WriteBit(GPIO5, GPIO_Pin_6, Bit_RESET); else GPIO_WriteBit(GPIO5, GPIO_Pin_6, Bit_SET);
7
 
10
 
8
#define LED_RED_ON      GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET)
11
#define LED_RED_ON      {if(Led_Red_Inv) GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET); else GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET);}
-
 
12
#define LED_RED_OFF {if(Led_Red_Inv) GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET);   else GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET);}
9
#define LED_RED_OFF GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET)
13
#define LED_RED_TOGGLE  if (GPIO_ReadBit(GPIO5, GPIO_Pin_7)) GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET); else GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET);
10
#define LED_RED_TOGGLE  if (GPIO_ReadBit(GPIO5, GPIO_Pin_7)) LED_RED_OFF; else LED_RED_ON;
14
 
11
 
15
extern u8 Version_HW;
12
void Led_Init(void);
16
void Led_Init(void);
13
 
17
 
14
#endif //_LED_H
18
#endif //_LED_H
15
 
-
 
16
 
-
 
17
 
19