Rev 41 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 41 | Rev 264 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _LED_H |
1 | #ifndef _LED_H |
2 | #define _LED_H |
2 | #define _LED_H |
Line 3... | Line 3... | ||
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) |
- | |
Line -... | Line 5... | ||
- | 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);} |
Line -... | Line 12... | ||
- | 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); |
Line 10... | Line 14... | ||
10 | #define LED_RED_TOGGLE if (GPIO_ReadBit(GPIO5, GPIO_Pin_7)) LED_RED_OFF; else LED_RED_ON; |
14 | |
11 | - | ||
12 | void Led_Init(void); |
- |