mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
core: moved flags.h to thread.h
This commit is contained in:
parent
27e063823f
commit
7f5ab0cd5f
@ -1,42 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2014 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @addtogroup core_internal
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Misc flag definitions
|
||||
*
|
||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||
*/
|
||||
|
||||
#ifndef FLAGS_H
|
||||
#define FLAGS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name Optional flags for controlling a threads initial state.
|
||||
* @{
|
||||
*/
|
||||
#define CREATE_SLEEPING (1) /**< set the new thread to sleeping */
|
||||
#define AUTO_FREE (2) /**< currently not implemented */
|
||||
#define CREATE_WOUT_YIELD (4) /**< do not automatically call thread_yield() after creation */
|
||||
#define CREATE_STACKTEST (8) /**< write markers into the thread's stack to measure stack
|
||||
usage (for debugging) */
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* FLAGS_H */
|
||||
/** @} */
|
@ -29,7 +29,6 @@
|
||||
#include "config.h"
|
||||
#include "tcb.h"
|
||||
#include "cpu.h"
|
||||
#include "flags.h"
|
||||
#include "sched.h"
|
||||
#include "cpu_conf.h"
|
||||
|
||||
|
@ -93,6 +93,32 @@
|
||||
*/
|
||||
#define THREAD_PRIORITY_MAIN (THREAD_PRIORITY_MIN - (SCHED_PRIO_LEVELS/2))
|
||||
|
||||
/**
|
||||
* @name Optional flags for controlling a threads initial state
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* @brief Set the new thread to sleeping
|
||||
**/
|
||||
#define CREATE_SLEEPING (1)
|
||||
|
||||
/**
|
||||
* @brief Currently not implemented
|
||||
*/
|
||||
#define AUTO_FREE (2)
|
||||
|
||||
/**
|
||||
* @brief Do not automatically call thread_yield() after creation
|
||||
*/
|
||||
#define CREATE_WOUT_YIELD (4)
|
||||
|
||||
/**
|
||||
* @brief Write markers into the thread's stack to measure stack usage (for
|
||||
* debugging)
|
||||
*/
|
||||
#define CREATE_STACKTEST (8)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief Creates a new thread
|
||||
*
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include "kernel.h"
|
||||
#include "kernel_internal.h"
|
||||
#include "sched.h"
|
||||
#include "flags.h"
|
||||
#include "cpu.h"
|
||||
#include "lpm.h"
|
||||
#include "thread.h"
|
||||
|
@ -31,8 +31,6 @@
|
||||
#include "irq.h"
|
||||
#include "cib.h"
|
||||
|
||||
#include "flags.h"
|
||||
|
||||
#define ENABLE_DEBUG (0)
|
||||
#include "debug.h"
|
||||
#include "thread.h"
|
||||
|
Loading…
Reference in New Issue
Block a user