Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
openwsn_leds_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Hamburg University of Applied Sciences
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
20
#ifndef OPENWSN_LEDS_PARAMS_H
21
#define OPENWSN_LEDS_PARAMS_H
22
23
#include "board.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
37
#ifndef OPENWSN_LEDPIN_ERROR
38
#if defined (LED0_PIN) && !defined(MODULE_BOARDS_COMMON_NUCLEO)
39
#define OPENWSN_LEDPIN_ERROR LED0_PIN
40
#else
41
#define OPENWSN_LEDPIN_ERROR GPIO_UNDEF
42
#endif
43
#endif
44
45
#ifndef OPENWSN_LEDPIN_SYNC
46
#ifdef LED1_PIN
47
#define OPENWSN_LEDPIN_SYNC LED1_PIN
48
#else
49
#define OPENWSN_LEDPIN_SYNC GPIO_UNDEF
50
#endif
51
#endif
52
53
#ifndef OPENWSN_LEDPIN_RADIO
54
#ifdef LED2_PIN
55
#define OPENWSN_LEDPIN_RADIO LED2_PIN
56
#else
57
#define OPENWSN_LEDPIN_RADIO GPIO_UNDEF
58
#endif
59
#endif
60
61
#ifndef OPENWSN_LEDPIN_DEBUG
62
#ifdef LED3_PIN
63
#define OPENWSN_LEDPIN_DEBUG LED3_PIN
64
#else
65
#define OPENWSN_LEDPIN_DEBUG GPIO_UNDEF
66
#endif
67
#endif
68
69
#ifndef OPENWSN_LED_ON_STATE
70
#define OPENWSN_LED_ON_STATE GPIO_LED_LOW
71
#endif
72
73
#define OPENWSN_LEDS_DEFAULT { .error = OPENWSN_LEDPIN_ERROR, \
74
.sync = OPENWSN_LEDPIN_SYNC, \
75
.radio = OPENWSN_LEDPIN_RADIO, \
76
.debug = OPENWSN_LEDPIN_DEBUG, \
77
.led_on = OPENWSN_LED_ON_STATE }
78
83
static
const
leds_config_t
openwsn_leds_params
[] =
84
{
85
#ifdef OPENWSN_LEDS_BOARD
86
OPENWSN_LEDS_BOARD,
87
#else
88
OPENWSN_LEDS_DEFAULT,
89
#endif
90
};
91
92
#ifdef __cplusplus
93
}
94
#endif
95
96
#endif
/* OPENWSN_LEDS_PARAMS_H */
openwsn_leds_params
static const leds_config_t openwsn_leds_params[]
OpenWSN leds configuration.
Definition:
openwsn_leds_params.h:83
leds_config
OpenWSN leds pin configuration.
Definition:
openwsn_leds.h:36
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17