mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
426170b064
As discussed in #2725, this commit renames a number of stacksize constants to better convey their intended usage. In addition, constants for thread priority are given a `THREAD_` prefix. Changes are: * KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF * KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT * KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE * KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN * Move thread stacksizes from kernel.h to thread.h, since the prefix changed * PRIORITY_MIN renamed to THREAD_PRIORITY_MIN * PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE * PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN * Move thread priorities from kernel.h to thread.h since the prefix has changed * MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
74 lines
1.5 KiB
C
74 lines
1.5 KiB
C
/*
|
|
* Copyright (C) 2015 Freie Universität Berlin
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
/**
|
|
* @defgroup net_pktdump Dump Network Packets
|
|
* @ingroup net
|
|
* @brief Dump network packets to STDOUT for debugging
|
|
*
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Interface for a generic network packet dumping module
|
|
*
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
*/
|
|
|
|
#ifndef NG_PKTDUMP_H_
|
|
#define NG_PKTDUMP_H_
|
|
|
|
#include "kernel.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Message queue size for the pktdump thread
|
|
*/
|
|
#ifndef NG_PKTDUMP_MSG_QUEUE_SIZE
|
|
#define NG_PKTDUMP_MSG_QUEUE_SIZE (8U)
|
|
#endif
|
|
|
|
/**
|
|
* @brief Priority of the pktdump thread
|
|
*/
|
|
#ifndef NG_PKTDUMP_PRIO
|
|
#define NG_PKTDUMP_PRIO (THREAD_PRIORITY_MAIN - 1)
|
|
#endif
|
|
|
|
/**
|
|
* @brief Stack size used for the pktdump thread
|
|
*/
|
|
#ifndef NG_PKTDUMP_STACKSIZE
|
|
#define NG_PKTDUMP_STACKSIZE (THREAD_STACKSIZE_MAIN)
|
|
#endif
|
|
|
|
/**
|
|
* @brief Get the PID of the pktdump thread
|
|
*
|
|
* @return PID of the pktdump thread
|
|
* @return @ref KERNEL_PID_UNDEF if not initialized
|
|
*/
|
|
kernel_pid_t ng_pktdump_getpid(void);
|
|
|
|
/**
|
|
* @brief Start the packet dump thread and listening for incoming packets
|
|
*
|
|
* @return PID of the pktdump thread
|
|
* @return negative value on error
|
|
*/
|
|
kernel_pid_t ng_pktdump_init(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* NG_PKTDUMP_H_ */
|
|
/** @} */
|