From 7a6e9acf96a3ae493ad7bd99491bef465b83f596 Mon Sep 17 00:00:00 2001 From: Sam Chesney Date: Wed, 27 Nov 2013 11:07:07 +0000 Subject: [PATCH] Update for tools13 compatibility - per core timers not yet allocated while constructor is running --- module_usb_audio/powersave/archU_powerSaving.xc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module_usb_audio/powersave/archU_powerSaving.xc b/module_usb_audio/powersave/archU_powerSaving.xc index 068c1717..4f42f66c 100644 --- a/module_usb_audio/powersave/archU_powerSaving.xc +++ b/module_usb_audio/powersave/archU_powerSaving.xc @@ -5,6 +5,7 @@ #include #include #include +#include #ifndef VOLTAGE_REDUCTION_mV #define VOLTAGE_REDUCTION_mV 20 @@ -25,7 +26,7 @@ void archU_powerSaving() // Reduce the VDDCORE voltage level for (unsigned count=0; count < (VOLTAGE_REDUCTION_mV/10); count++) { - timer t; + hwtimer_t t; int time; writeval[0] = (ARCH_U_VOLTAGE_FIRST_STEP - count);