Subversion Repositories NaviCtrl

Rev

Rev 41 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
41 ingob 1
#ifndef _LED_H
2
#define _LED_H
3
 
4
#define LED_GRN_ON      GPIO_WriteBit(GPIO5, GPIO_Pin_6, Bit_SET)
5
#define LED_GRN_OFF 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;
7
 
8
#define LED_RED_ON      GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_SET)
9
#define LED_RED_OFF GPIO_WriteBit(GPIO5, GPIO_Pin_7, Bit_RESET)
10
#define LED_RED_TOGGLE  if (GPIO_ReadBit(GPIO5, GPIO_Pin_7)) LED_RED_OFF; else LED_RED_ON;
11
 
12
void Led_Init(void);
13
 
14
#endif //_LED_H
15
 
16