From e063cd20329031d831819a5617d7b10314ec6a3f Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Thu, 6 Mar 2014 13:20:40 +0000 Subject: [PATCH] Added check for XCC_VERSION_NUMBER when using hwtimers in power save constructor --- module_usb_audio/powersave/archU_powerSaving.xc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module_usb_audio/powersave/archU_powerSaving.xc b/module_usb_audio/powersave/archU_powerSaving.xc index 03535cde..63e1a7ed 100644 --- a/module_usb_audio/powersave/archU_powerSaving.xc +++ b/module_usb_audio/powersave/archU_powerSaving.xc @@ -5,7 +5,12 @@ #include #include #include + +#if (XCC_MAJOR_VERSION >= 1300) #include +#else +#define hwtimer timer +#endif #ifndef VOLTAGE_REDUCTION_mV #define VOLTAGE_REDUCTION_mV 20