/* When lpINCLUDE_TEST_TIMER is set to 1 a basic timer is used to generate\r
interrupts at a low frequency. The purpose being to bring the CPU out of its\r
sleep mode by an interrupt other than the tick interrupt, and therefore\r
-allowing an additional past through the code to be tested. */\r
+allowing an additional paths through the code to be tested. */\r
#define lpINCLUDE_TEST_TIMER 0\r
\r
/* Some registers are accessed directly as the library is not compatible with\r
all the compilers used. */\r
-#define lpHTIMER_PRELOAD_REGISTER ( * ( uint16_t * ) 0x40009800 )\r
-#define lpHTIMER_CONTROL_REGISTER ( * ( uint16_t * ) 0x40009804 )\r
-#define lpHTIMER_COUNT_REGISTER ( * ( uint16_t * ) 0x40009808 )\r
-#define lpEC_GIRQ17_ENABLE_SET ( * ( uint32_t * ) 0x4000C0B8 )\r
+#define lpHTIMER_PRELOAD_REGISTER ( * ( volatile uint16_t * ) 0x40009800 )\r
+#define lpHTIMER_CONTROL_REGISTER ( * ( volatile uint16_t * ) 0x40009804 )\r
+#define lpHTIMER_COUNT_REGISTER ( * ( volatile uint16_t * ) 0x40009808 )\r
+#define lpEC_GIRQ17_ENABLE_SET ( * ( volatile uint32_t * ) 0x4000C0B8 )\r
#define lpHTIMER_INTERRUPT_CONTROL_BIT ( 1UL << 20UL )\r
\r
/*\r
/* Undo the adjustment that was made to the reload value to account\r
for the fact that a time slice was part way through when this\r
function was called before working out how many complete tick\r
- periods this represents. (could have used [ulExpectedIdleTime * \r
+ periods this represents. (could have used [ulExpectedIdleTime *\r
ulReloadValueForOneHighResolutionTick] instead of ulReloadValue on\r
the previous line, but this way avoids the multiplication). */\r
ulCompletedTimerDecrements += ( ulReloadValueForOneHighResolutionTick - ulCountBeforeSleep );\r