From: scipio Date: Fri, 6 Jul 2007 17:33:22 +0000 (+0000) Subject: AlarmCounter needs the #include depending on component loading order. X-Git-Tag: release_tools_1_2_4_1~74 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=f2ea38bc4acccd2dc547e3a7d2936351d974ddae;p=tinyos-2.x.git AlarmCounter needs the #include depending on component loading order. Add a typedef for mcu power type for the null platform. --- diff --git a/tos/platforms/mica/AlarmCounterMilliP.nc b/tos/platforms/mica/AlarmCounterMilliP.nc index 8a45e53f..d403580e 100644 --- a/tos/platforms/mica/AlarmCounterMilliP.nc +++ b/tos/platforms/mica/AlarmCounterMilliP.nc @@ -18,6 +18,7 @@ * @author David Gay * @author Martin Turon */ +#include #include diff --git a/tos/platforms/null/hardware.h b/tos/platforms/null/hardware.h index bd9ff077..4e2f7984 100644 --- a/tos/platforms/null/hardware.h +++ b/tos/platforms/null/hardware.h @@ -5,6 +5,7 @@ inline void __nesc_enable_interrupt() { } inline void __nesc_disable_interrupt() { } typedef uint8_t __nesc_atomic_t; +typedef uint8_t mcu_power_t; inline __nesc_atomic_t __nesc_atomic_start(void) @spontaneous() { return 0;