You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First you need to init the timers;
SoftTimer_Init(eTimerID1,100); // 250ms
SoftTimer_Init(eTimerID2,500); // 100ms
than in systick timer handler or any other timer handler which is set to 1 ms period, you need to include SoftTimer_ISR(); function. Then you can track time with this condition SoftTimer[i].timeout=set; . If it is set it means the period you initialize the timer has passed.
Sorry for the comment lines. They are wrong. They need to be ->
SoftTimer_Init(eTimerID1,100); // 100ms
SoftTimer_Init(eTimerID2,500); // 500ms
In your case it is ;
SoftTimer_Init(eTimerID1,1); // 1ms
SoftTimer_Init(eTimerID2,5); // 5ms
SoftTimer_Init(eTimerID3,10); // 10ms
No description provided.
The text was updated successfully, but these errors were encountered: