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