CMSIS-Core(M): Fixed SYSTICK example with missing volatile definition.
\code
#include "LPC17xx.h"
-uint32_t msTicks = 0; /* Variable to store millisecond ticks */
+volatile uint32_t msTicks = 0; /* Variable to store millisecond ticks */
-
-void SysTick_Handler(void) { /* SysTick interrupt Handler.
- msTicks++; See startup file startup_LPC17xx.s for SysTick vector */
+void SysTick_Handler(void) { /* SysTick interrupt Handler. */
+ msTicks++; /* See startup file startup_LPC17xx.s for SysTick vector */
}
-
int main (void) {
uint32_t returnCode;
