From: liang_mike Date: Fri, 9 Jan 2009 01:38:52 +0000 (+0000) Subject: Move AT_SPONTANEOUS definition from TinyOSEntryPointC.nc to TinyOSMainP.nc. This... X-Git-Tag: rc_6_tinyos_2_1_1~534 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=4750c44f730535b2f9db7a4a893d1d33dc957f45 Move AT_SPONTANEOUS definition from TinyOSEntryPointC.nc to TinyOSMainP.nc. This allows both C and nesC thread API to use it. --- 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;