X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Fsystem%2FTinyOSMainP.nc;h=8c8e44238099fa329c6f88969180f33d3a2afc44;hp=2df6d5df357c351c65ae1888f61641f73e5fb65a;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/lib/tosthreads/system/TinyOSMainP.nc b/tos/lib/tosthreads/system/TinyOSMainP.nc index 2df6d5df..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; @@ -93,6 +99,10 @@ implementation { call TaskScheduler.taskLoop(); } + + async command error_t ThreadInfo.reset() { + return FAIL; + } async command thread_t* ThreadInfo.get() { return &thread_info;