mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
9faa323c83
Since it was ported to the radio HAL, at86rf2xx requires more stack: 2023-03-02 01:00:52,637 # pid | name | state Q | pri | stack ( used) ( free) | base addr | current 2023-03-02 01:00:52,646 # 1 | idle | pending Q | 15 | 192 ( 130) ( 62) | 0x263a | 0x269f 2023-03-02 01:00:52,655 # 2 | main | running Q | 7 | 2560 ( 1732) ( 828) | 0x26fa | 0x2cb1 2023-03-02 01:00:52,663 # 3 | 6lo | bl rx _ | 3 | 512 ( 276) ( 236) | 0x5446 | 0x559b 2023-03-02 01:00:52,672 # 4 | ipv6 | bl rx _ | 4 | 512 ( 372) ( 140) | 0x318e | 0x32c4 2023-03-02 01:00:52,681 # 5 | udp | bl rx _ | 5 | 256 ( 214) ( 42) | 0x5648 | 0x569d 2023-03-02 01:00:52,689 # 6 | at86rf2xx | bl anyfl _ | 2 | 520 ( 514) ( 6) | 0x3582 | 0x371f 2023-03-02 01:00:52,697 # | SUM | | | 4552 ( 3238) ( 1314)
67 lines
1.6 KiB
C
67 lines
1.6 KiB
C
/*
|
|
* Copyright (C) 2020 Otto-von-Guericke-Universität Magdeburg
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup sys_auto_init_gnrc_netif
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief common netif device initialization definitions
|
|
*
|
|
* @author Fabian Hüßler <fabian.huessler@ovgu.de>
|
|
*/
|
|
|
|
#ifndef INIT_DEVS_H
|
|
#define INIT_DEVS_H
|
|
|
|
#include "thread.h"
|
|
#include "msg.h"
|
|
#include "net/gnrc/netif/conf.h" /* <- GNRC_NETIF_MSG_QUEUE_SIZE */
|
|
#include "macros/utils.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief stack size of a netif thread
|
|
*
|
|
* Message queue was previously allocated on the stack, reduce
|
|
* stack size by default msg queue size to keep the RAM use the same
|
|
*/
|
|
#ifndef GNRC_NETIF_STACKSIZE_DEFAULT
|
|
#define GNRC_NETIF_STACKSIZE_DEFAULT (THREAD_STACKSIZE_DEFAULT - 128)
|
|
#endif
|
|
|
|
/**
|
|
* @brief extra stack size if ieee802154 security is enabled
|
|
*
|
|
* You may increase this value if you experience a stack overflow
|
|
* with IEEE 802.15.4 security enabled.
|
|
*/
|
|
#ifdef MODULE_IEEE802154_SECURITY
|
|
#define IEEE802154_SECURITY_EXTRA_STACKSIZE (128)
|
|
#else
|
|
#define IEEE802154_SECURITY_EXTRA_STACKSIZE (0)
|
|
#endif
|
|
|
|
#ifndef IEEE802154_STACKSIZE_DEFAULT
|
|
/**
|
|
* @brief stack size of an ieee802154 device
|
|
*/
|
|
#define IEEE802154_STACKSIZE_DEFAULT (MAX(520, GNRC_NETIF_STACKSIZE_DEFAULT) + \
|
|
IEEE802154_SECURITY_EXTRA_STACKSIZE)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* INIT_DEVS_H */
|
|
/** @} */
|