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
if interrupts are disabled, the result from millis() doesn't advance. The approach taken should be to check the SCB_ICSR_PENDSTSET_Msk bit and increment the tick count if it's set. This doesn't guarantee that millis() will advance as fast as it might if interrupts were enabled, but at least it will advance, and a tight loop based on millis() changing will terminate.
The text was updated successfully, but these errors were encountered:
if interrupts are disabled, the result from
millis()
doesn't advance. The approach taken should be to check theSCB_ICSR_PENDSTSET_Msk
bit and increment the tick count if it's set. This doesn't guarantee thatmillis()
will advance as fast as it might if interrupts were enabled, but at least it will advance, and a tight loop based onmillis()
changing will terminate.The text was updated successfully, but these errors were encountered: