Loading...
Searching...
No Matches
openwsn_leds.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 HAW Hamburg
3 * SPDX-FileCopyrightText: 2020 Inria
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
22
23#include "periph/gpio.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33typedef struct leds_config {
34 gpio_t error;
35 gpio_t sync;
36 gpio_t radio;
37 gpio_t debug;
38 uint8_t led_on;
41
45enum {
46 GPIO_LED_LOW = 0,
47 GPIO_LED_HIGH
48};
49
57void ledpins_riot_init(const leds_config_t *user_config);
58
59#ifdef __cplusplus
60}
61#endif
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.