]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/hyplnk-lld.git/commitdiff
cicInterruptExample: Add volatile for EMU count record
authorSam Nelson <sam.nelson@ti.com>
Wed, 10 Jun 2015 16:48:14 +0000 (12:48 -0400)
committerSam Nelson <sam.nelson@ti.com>
Thu, 18 Jun 2015 20:25:46 +0000 (16:25 -0400)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
example/cicInterruptExample/src/cicInterruptExample.c

index 2bf7ec2b74a8f30aba0c17e8e2ff778ac579bb20..2902ef9377ccad94be6e5e3bb6b56604edd86d78 100755 (executable)
@@ -103,8 +103,8 @@ CSL_PllcRegsOvly pllcRegs = (CSL_PllcRegsOvly)(CSL_PLLC_REGS);
 #define hyplnk_EXAMPLE_CIC0_1_DELAY_CYCLES_BETWEEN_INTERRUPTS 2000
 
 #ifdef EMUCNT_PROFILE
-uint32_t recordEmucnt0Start[hyplnk_EXAMPLE_NUM_DSP_CORES][hyplnk_EXAMPLE_NUM_INTERRUPTS];
-uint32_t recordEmucnt0End[hyplnk_EXAMPLE_NUM_DSP_CORES][hyplnk_EXAMPLE_NUM_INTERRUPTS];
+volatile uint32_t recordEmucnt0End[hyplnk_EXAMPLE_NUM_DSP_CORES][hyplnk_EXAMPLE_NUM_INTERRUPTS];
+volatile uint32_t recordEmucnt0Start[hyplnk_EXAMPLE_NUM_DSP_CORES][hyplnk_EXAMPLE_NUM_INTERRUPTS];
 #endif
 
 /* ARM side needs 24 independent interrupts, for example: