From 4750c44f730535b2f9db7a4a893d1d33dc957f45 Mon Sep 17 00:00:00 2001 From: liang_mike Date: Fri, 9 Jan 2009 01:38:52 +0000 Subject: [PATCH] Move AT_SPONTANEOUS definition from TinyOSEntryPointC.nc to TinyOSMainP.nc. This allows both C and nesC thread API to use it. --- tos/lib/tosthreads/csystem/TinyOSEntryPointC.nc | 6 ------ tos/lib/tosthreads/system/TinyOSMainP.nc | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tos/lib/tosthreads/csystem/TinyOSEntryPointC.nc b/tos/lib/tosthreads/csystem/TinyOSEntryPointC.nc index 25befbd7..d55f5a61 100644 --- a/tos/lib/tosthreads/csystem/TinyOSEntryPointC.nc +++ b/tos/lib/tosthreads/csystem/TinyOSEntryPointC.nc @@ -35,12 +35,6 @@ #include "tosthread.h" -#ifdef DYNTHREADS - #define AT_SPONTANEOUS @spontaneous() -#else - #define AT_SPONTANEOUS -#endif - configuration TinyOSEntryPointC { } implementation { diff --git a/tos/lib/tosthreads/system/TinyOSMainP.nc b/tos/lib/tosthreads/system/TinyOSMainP.nc index 75d06aa1..8c8e4423 100644 --- a/tos/lib/tosthreads/system/TinyOSMainP.nc +++ b/tos/lib/tosthreads/system/TinyOSMainP.nc @@ -42,6 +42,12 @@ * @author Kevin Klues */ +#ifdef DYNTHREADS + #define AT_SPONTANEOUS @spontaneous() +#else + #define AT_SPONTANEOUS +#endif + module TinyOSMainP { provides { interface Boot; -- 2.39.2