led.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
32 #ifndef LED_H
33 #define LED_H
34 
35 #include "board.h"
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
45 #ifndef LED0_ON
46 #define LED0_ON
47 #define LED0_OFF
48 #define LED0_TOGGLE
49 #endif
50 
51 #ifndef LED1_ON
52 #define LED1_ON
53 #define LED1_OFF
54 #define LED1_TOGGLE
55 #endif
56 
57 #ifndef LED2_ON
58 #define LED2_ON
59 #define LED2_OFF
60 #define LED2_TOGGLE
61 #endif
62 
63 #ifndef LED3_ON
64 #define LED3_ON
65 #define LED3_OFF
66 #define LED3_TOGGLE
67 #endif
68 
69 #ifndef LED4_ON
70 #define LED4_ON
71 #define LED4_OFF
72 #define LED4_TOGGLE
73 #endif
74 
75 #ifndef LED5_ON
76 #define LED5_ON
77 #define LED5_OFF
78 #define LED5_TOGGLE
79 #endif
80 
81 #ifndef LED6_ON
82 #define LED6_ON
83 #define LED6_OFF
84 #define LED6_TOGGLE
85 #endif
86 
87 #ifndef LED7_ON
88 #define LED7_ON
89 #define LED7_OFF
90 #define LED7_TOGGLE
91 #endif
92 
98 #define LED_ON(x) LED ## x ##_ON
99 #define LED_OFF(x) LED ## x ## _OFF
100 #define LED_TOGGLE(x) LED ## x ##_TOGGLE
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #endif /* LED_H */
108