Loading...
Searching...
No Matches
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
29extern "C" {
30#endif
31
36typedef struct leds_config {
37 gpio_t error;
38 gpio_t sync;
39 gpio_t radio;
40 gpio_t debug;
41 uint8_t led_on;
48enum {
49 GPIO_LED_LOW = 0,
50 GPIO_LED_HIGH
51};
52
60void ledpins_riot_init(const leds_config_t *user_config);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif /* OPENWSN_LEDS_H */
Low-level GPIO peripheral driver interface definitions.
struct leds_config leds_config_t
OpenWSN leds pin configuration.
void ledpins_riot_init(const leds_config_t *user_config)
Sets the led pins for a specific board for OpenWSN.
OpenWSN leds pin configuration.
gpio_t error
error led
gpio_t debug
debug led
gpio_t radio
radio activity led
gpio_t sync
synchronization state led
uint8_t led_on
GPIO set to turn led on.