1
0
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:
Hauke Petersen 2015-12-02 11:35:34 +01:00
parent 27e063823f
commit 7f5ab0cd5f
5 changed files with 26 additions and 46 deletions

View File

@ -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 */
/** @} */

View File

@ -29,7 +29,6 @@
#include "config.h"
#include "tcb.h"
#include "cpu.h"
#include "flags.h"
#include "sched.h"
#include "cpu_conf.h"

View File

@ -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
*

View File

@ -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"

View File

@ -31,8 +31,6 @@
#include "irq.h"
#include "cib.h"
#include "flags.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "thread.h"