so if i initialize systick like this:
void SysTick_Init(unsigned long period){ NVIC_ST_CTRL_R=0;//disable systick during setup NVIC_ST_RELOAD_R=period-1;//(
NVIC_ST_CURRENT_R=0;//any write will clear the register
NVIC_SYS_PRI3_R=(NVIC_SYS_PRI3_R & 0x00FFFFFF);//priority 0
NVIC_ST_CTRL_R=0x07; //enable core clock and interrrupt
EnableInterrupts(); }
and later on want to call it using 40HZ would the following code be ok?
SysTick_Init(40);