20#ifndef OPENWSN_LEDS_PARAMS_H
21#define OPENWSN_LEDS_PARAMS_H
37#ifndef OPENWSN_LEDPIN_ERROR
38#if defined (LED0_PIN) && !defined(MODULE_BOARDS_COMMON_NUCLEO)
39#define OPENWSN_LEDPIN_ERROR LED0_PIN
41#define OPENWSN_LEDPIN_ERROR GPIO_UNDEF
45#ifndef OPENWSN_LEDPIN_SYNC
47#define OPENWSN_LEDPIN_SYNC LED1_PIN
49#define OPENWSN_LEDPIN_SYNC GPIO_UNDEF
53#ifndef OPENWSN_LEDPIN_RADIO
55#define OPENWSN_LEDPIN_RADIO LED2_PIN
57#define OPENWSN_LEDPIN_RADIO GPIO_UNDEF
61#ifndef OPENWSN_LEDPIN_DEBUG
63#define OPENWSN_LEDPIN_DEBUG LED3_PIN
65#define OPENWSN_LEDPIN_DEBUG GPIO_UNDEF
69#ifndef OPENWSN_LED_ON_STATE
70#define OPENWSN_LED_ON_STATE GPIO_LED_LOW
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 }
85#ifdef OPENWSN_LEDS_BOARD
static const leds_config_t openwsn_leds_params[]
OpenWSN leds configuration.
OpenWSN leds pin configuration.