Loading...
Searching...
No Matches
openwsn_debugpins_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
20
21#include "board.h"
22#include "openwsn_debugpins.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
34#ifndef OPENWSN_DEBUGPIN_FRAME
35#define OPENWSN_DEBUGPIN_FRAME GPIO_UNDEF
36#endif
37#ifndef OPENWSN_DEBUGPIN_SLOT
38#define OPENWSN_DEBUGPIN_SLOT GPIO_UNDEF
39#endif
40#ifndef OPENWSN_DEBUGPIN_FSM
41#define OPENWSN_DEBUGPIN_FSM GPIO_UNDEF
42#endif
43#ifndef OPENWSN_DEBUGPIN_TASK
44#define OPENWSN_DEBUGPIN_TASK GPIO_UNDEF
45#endif
46#ifndef OPENWSN_DEBUGPIN_ISR
47#define OPENWSN_DEBUGPIN_ISR GPIO_UNDEF
48#endif
49#ifndef OPENWSN_DEBUGPIN_RADIO
50#define OPENWSN_DEBUGPIN_RADIO GPIO_UNDEF
51#endif
52
53#define OPENWSN_DEBUGPINS_DEFAULT { .frame = OPENWSN_DEBUGPIN_FRAME, \
54 .slot = OPENWSN_DEBUGPIN_SLOT, \
55 .fsm = OPENWSN_DEBUGPIN_FSM, \
56 .task = OPENWSN_DEBUGPIN_TASK, \
57 .isr = OPENWSN_DEBUGPIN_ISR, \
58 .radio = OPENWSN_DEBUGPIN_RADIO}
60
65{
66#ifdef OPENWSN_DEBUGPINS_BOARD
67 OPENWSN_DEBUGPINS_BOARD,
68#else
69 OPENWSN_DEBUGPINS_DEFAULT,
70#endif
71};
72
73#ifdef __cplusplus
74}
75#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.