Hi,
I am writing delay/sleep routine with SysTick driverlib APIs without interrupt in MSP-EXP432E401Y as follows:
hz4milliseconds = ui32SysClock / 1000;
SysTickEnable(); // no interrupt
SysTickIntDisable();
while (1) {
sleeptime = 1000; // 1 second
for ( ; sleeptime > 0 ; --sleeptime) {
SysTickPeriodSet(hz4milliseconds);
while (SysTickValueGet() & hz4milliseconds > 0) ;
// while (SysTickValueGet() > 0) ;
}
GPIO_toggle(CONFIG_GPIO_LED_0);
}
I would like to make LED toggling every 1 second, but execution hanged at SysTickValueGet().
Please advise me how to solve this problem.
Any help/tips are appreciated in advance.
HaeSeung