From f2ea38bc4acccd2dc547e3a7d2936351d974ddae Mon Sep 17 00:00:00 2001 From: scipio Date: Fri, 6 Jul 2007 17:33:22 +0000 Subject: [PATCH] AlarmCounter needs the #include depending on component loading order. Add a typedef for mcu power type for the null platform. --- tos/platforms/mica/AlarmCounterMilliP.nc | 1 + tos/platforms/null/hardware.h | 1 + 2 files changed, 2 insertions(+) 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; -- 2.39.2