Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cortexm_common: Clear PendSV request after idle sleep
The PendSV interrupt is used to request a scheduling operation. An interrupt during the idle sleep can re-request the PendSV interrupt, while the PendSV is still busy scheduling the next thread. This clears the request after sleep to prevent triggering an extra PendSV interrupt after the current PendSV handler finished.
- Loading branch information