/* Gets the period of the SysTick counter. 
This function returns the rate at which the SysTick counter wraps; this equates to the number of processor clocks between interrupts. */
unsigned long xSysTickPeriodGet(void)
/* Gets the period of the SysTick counter. 
This function returns the rate at which the SysTick counter wraps; this equates to the number of processor clocks between interrupts. */
unsigned long xSysTickPeriodGet(void)
{
    return(xHWREG(NVIC_ST_RELOAD) + 1);
}