From b787b27d5be8fa04a9f8b1a226faf60b0f0d96da Mon Sep 17 00:00:00 2001 From: marcas756 Date: Sat, 22 Nov 2014 15:49:45 +0100 Subject: [PATCH] Moved thread states from module to header --- core/sys/mt.c | 4 ---- core/sys/mt.h | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/sys/mt.c b/core/sys/mt.c index cfa8a39a5..430440fe8 100644 --- a/core/sys/mt.c +++ b/core/sys/mt.c @@ -46,10 +46,6 @@ #include "sys/mt.h" #include "sys/cc.h" -#define MT_STATE_READY 1 -#define MT_STATE_RUNNING 2 -#define MT_STATE_EXITED 5 - static struct mt_thread *current; /*--------------------------------------------------------------------------*/ diff --git a/core/sys/mt.h b/core/sys/mt.h index 0e67dee0d..f6296e24a 100644 --- a/core/sys/mt.h +++ b/core/sys/mt.h @@ -84,6 +84,9 @@ #include "contiki.h" +#define MT_STATE_READY 1 +#define MT_STATE_RUNNING 2 +#define MT_STATE_EXITED 5 /** * An opaque structure that is used for holding the state of a thread.