Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
#else
50
#define LED0_IS_PRESENT
51
#endif
52
53
#ifndef LED1_ON
54
#define LED1_ON
55
#define LED1_OFF
56
#define LED1_TOGGLE
57
#else
58
#define LED1_IS_PRESENT
59
#endif
60
61
#ifndef LED2_ON
62
#define LED2_ON
63
#define LED2_OFF
64
#define LED2_TOGGLE
65
#else
66
#define LED2_IS_PRESENT
67
#endif
68
69
#ifndef LED3_ON
70
#define LED3_ON
71
#define LED3_OFF
72
#define LED3_TOGGLE
73
#else
74
#define LED3_IS_PRESENT
75
#endif
76
77
#ifndef LED4_ON
78
#define LED4_ON
79
#define LED4_OFF
80
#define LED4_TOGGLE
81
#else
82
#define LED4_IS_PRESENT
83
#endif
84
85
#ifndef LED5_ON
86
#define LED5_ON
87
#define LED5_OFF
88
#define LED5_TOGGLE
89
#else
90
#define LED5_IS_PRESENT
91
#endif
92
93
#ifndef LED6_ON
94
#define LED6_ON
95
#define LED6_OFF
96
#define LED6_TOGGLE
97
#else
98
#define LED6_IS_PRESENT
99
#endif
100
101
#ifndef LED7_ON
102
#define LED7_ON
103
#define LED7_OFF
104
#define LED7_TOGGLE
105
#else
106
#define LED7_IS_PRESENT
107
#endif
108
115
#define LED_ON(x) LED ## x ##_ON
116
#define LED_OFF(x) LED ## x ## _OFF
117
#define LED_TOGGLE(x) LED ## x ##_TOGGLE
120
#ifdef __cplusplus
121
}
122
#endif
123
124
#endif
/* LED_H */
Generated on Wed May 1 2024 07:14:18 by
1.9.8