Loading...
Searching...
No Matches
openwsn_debugpins_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
22#ifndef OPENWSN_DEBUGPINS_PARAMS_H
23#define OPENWSN_DEBUGPINS_PARAMS_H
24
25#include "board.h"
26#include "openwsn_debugpins.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
38#ifndef OPENWSN_DEBUGPIN_FRAME
39#define OPENWSN_DEBUGPIN_FRAME GPIO_UNDEF
40#endif
41#ifndef OPENWSN_DEBUGPIN_SLOT
42#define OPENWSN_DEBUGPIN_SLOT GPIO_UNDEF
43#endif
44#ifndef OPENWSN_DEBUGPIN_FSM
45#define OPENWSN_DEBUGPIN_FSM GPIO_UNDEF
46#endif
47#ifndef OPENWSN_DEBUGPIN_TASK
48#define OPENWSN_DEBUGPIN_TASK GPIO_UNDEF
49#endif
50#ifndef OPENWSN_DEBUGPIN_ISR
51#define OPENWSN_DEBUGPIN_ISR GPIO_UNDEF
52#endif
53#ifndef OPENWSN_DEBUGPIN_RADIO
54#define OPENWSN_DEBUGPIN_RADIO GPIO_UNDEF
55#endif
56
57#define OPENWSN_DEBUGPINS_DEFAULT { .frame = OPENWSN_DEBUGPIN_FRAME, \
58 .slot = OPENWSN_DEBUGPIN_SLOT, \
59 .fsm = OPENWSN_DEBUGPIN_FSM, \
60 .task = OPENWSN_DEBUGPIN_TASK, \
61 .isr = OPENWSN_DEBUGPIN_ISR, \
62 .radio = OPENWSN_DEBUGPIN_RADIO}
69{
70#ifdef OPENWSN_DEBUGPINS_BOARD
71 OPENWSN_DEBUGPINS_BOARD,
72#else
73 OPENWSN_DEBUGPINS_DEFAULT,
74#endif
75};
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* OPENWSN_DEBUGPINS_PARAMS_H */
Provides an adaption of OpenWSN debug pin handling to RIOTs handling of GPIOs.
static const debugpins_config_t openwsn_debugpins_params[]
OpenWSN debugpins configuration.
struct holding configuration of OpenWSN debug pins