Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
openwsn_leds.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Hamburg University of Applied Sciences
3
* 2020 Inria
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
23
#ifndef OPENWSN_LEDS_H
24
#define OPENWSN_LEDS_H
25
26
#include "
periph/gpio.h
"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
36
typedef
struct
leds_config
{
37
gpio_t
error
;
38
gpio_t
sync
;
39
gpio_t
radio
;
40
gpio_t
debug
;
41
uint8_t
led_on
;
42
}
leds_config_t
;
48
enum
{
49
GPIO_LED_LOW = 0,
50
GPIO_LED_HIGH
51
};
52
60
void
ledpins_riot_init
(
const
leds_config_t
*user_config);
61
62
#ifdef __cplusplus
63
}
64
#endif
65
66
#endif
/* OPENWSN_LEDS_H */
ledpins_riot_init
void ledpins_riot_init(const leds_config_t *user_config)
Sets the led pins for a specific board for OpenWSN.
leds_config::debug
gpio_t debug
debug led
Definition:
openwsn_leds.h:40
leds_config_t
struct leds_config leds_config_t
OpenWSN leds pin configuration.
leds_config::error
gpio_t error
error led
Definition:
openwsn_leds.h:37
leds_config::led_on
uint8_t led_on
GPIO set to turn led on.
Definition:
openwsn_leds.h:41
leds_config::sync
gpio_t sync
synchronization state led
Definition:
openwsn_leds.h:38
gpio.h
Low-level GPIO peripheral driver interface definitions.
leds_config
OpenWSN leds pin configuration.
Definition:
openwsn_leds.h:36
leds_config::radio
gpio_t radio
radio activity led
Definition:
openwsn_leds.h:39
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17