Loading...
Searching...
No Matches
init_devs.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Otto-von-Guericke-Universität Magdeburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "thread.h"
19#include "msg.h"
20#include "net/gnrc/netif/conf.h" /* <- GNRC_NETIF_MSG_QUEUE_SIZE */
21#include "macros/utils.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
33#ifndef GNRC_NETIF_STACKSIZE_DEFAULT
34#define GNRC_NETIF_STACKSIZE_DEFAULT (THREAD_STACKSIZE_DEFAULT - 128)
35#endif
36
43#if IS_USED(MODULE_IEEE802154_SECURITY) || DOXYGEN
44#define IEEE802154_SECURITY_EXTRA_STACKSIZE (128)
45#else
46#define IEEE802154_SECURITY_EXTRA_STACKSIZE (0)
47#endif
48
52#if IS_USED(MODULE_OPENDSME)
53#define IEEE802154_OPENDSME_EXTRA_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
54#else
55#define IEEE802154_OPENDSME_EXTRA_STACKSIZE (0)
56#endif
57
58#ifndef IEEE802154_STACKSIZE_DEFAULT
62#define IEEE802154_STACKSIZE_DEFAULT (MAX(520, GNRC_NETIF_STACKSIZE_DEFAULT) + \
63 IEEE802154_SECURITY_EXTRA_STACKSIZE + \
64 IEEE802154_OPENDSME_EXTRA_STACKSIZE)
65#endif
66
67#ifdef __cplusplus
68}
69#endif
70
Various helper macros.
Configuration macros for Network interface API.