summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo')
-rw-r--r--FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/RunTimeStatsTimer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/RunTimeStatsTimer.c b/FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/RunTimeStatsTimer.c
index 49f8cf889..faa3d4347 100644
--- a/FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/RunTimeStatsTimer.c
+++ b/FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/RunTimeStatsTimer.c
@@ -71,9 +71,9 @@ more information on run time stats:
http://www.freertos.org/rtos-run-time-stats.html */
/* Addresses of registers in the Cortex-M debug hardware. */
-#define rtsDWT_CYCCNT ( *( ( unsigned long * ) 0xE0001004 ) )
-#define rtsDWT_CONTROL ( *( ( unsigned long * ) 0xE0001000 ) )
-#define rtsSCB_DEMCR ( *( ( unsigned long * ) 0xE000EDFC ) )
+#define rtsDWT_CYCCNT ( *( ( volatile unsigned long * ) 0xE0001004 ) )
+#define rtsDWT_CONTROL ( *( ( volatile unsigned long * ) 0xE0001000 ) )
+#define rtsSCB_DEMCR ( *( ( volatile unsigned long * ) 0xE000EDFC ) )
#define rtsTRCENA_BIT ( 0x01000000UL )
#define rtsCOUNTER_ENABLE_BIT ( 0x01UL )