]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M4F_CEC1302_Keil/main_low_power/low_power_tick_config.c
Update MSP432 projects to use updated driver library files.
[freertos] / FreeRTOS / Demo / CORTEX_M4F_CEC1302_Keil / main_low_power / low_power_tick_config.c
index 11adcb5958407445bc92025f4e187ab4a83587ea..e9bd14c0f1292262c83fbe952858b4cdb1b6a8b7 100644 (file)
@@ -109,15 +109,15 @@ resolution and low resolution respectively. */
 /* 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
@@ -378,7 +378,7 @@ TickType_t xModifiableIdleTime;
                        /* 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