Subversion Repositories NaviCtrl

Rev

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

Rev 480 Rev 483
1
#ifndef _LED_H
1
#ifndef _LED_H
2
#define _LED_H
2
#define _LED_H
3
 
3
 
4
extern u8 Led_Grn_Inv;
4
extern u8 Led_Grn_Inv;
5
extern u8 Led_Red_Inv;
5
extern u8 Led_Red_Inv;
6
 
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);}
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);}
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);}
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);
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);
10
 
-
 
11
 
10
 
12
#define LED_RED_ON_T // {if(Led_Red_Inv) GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET); else GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET);}
11
#define LED_RED_ON_T // {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_T //  {if(Led_Red_Inv) GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET);   else GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET);}
-
 
13
 
-
 
14
#define LED_RED_ON_Q    {if(Led_Red_Inv) GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET); else GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET);}
-
 
15
#define LED_RED_OFF_Q   {if(Led_Red_Inv) GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET);   else GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET);}
13
#define LED_RED_OFF_T//   {if(Led_Red_Inv) GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET);   else GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET);}
16
 
14
 
17
 
15
#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);}
18
#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);}
16
#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);}
19
#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);}
17
#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);
20
#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);
18
 
21
 
19
extern u8 Version_HW;
22
extern u8 Version_HW;
20
void Led_Init(void);
23
void Led_Init(void);
21
 
24
 
22
#endif //_LED_H
25
#endif //_LED_H
23
 
26