Added check for XCC_VERSION_NUMBER when using hwtimers in power save constructor

This commit is contained in:
Ross Owen
2014-03-06 13:20:40 +00:00
parent f32acbd55d
commit e063cd2032

View File

@@ -5,7 +5,12 @@
#include <xs1_l_registers.h>
#include <xs1_su_registers.h>
#include <platform.h>
#if (XCC_MAJOR_VERSION >= 1300)
#include <hwtimer.h>
#else
#define hwtimer timer
#endif
#ifndef VOLTAGE_REDUCTION_mV
#define VOLTAGE_REDUCTION_mV 20