adafruit / adafruit/Adafruit_nRF52_Arduino
Strange implementation of waitForInterrupt
- Dominant language
- C
- Stars
- 699
- Forks
- 570
- PR merge metrics
- No merged PRs in 30d
Description
The sequence
` __WFE();
__SEV(); // Clear Event Register.
__WFE();`
looks strange to me. SEV is supposed to set event register, not clear it, in which case the second WFE will always get through without stopping. So the first WFE is the one doing actual job, and should be sufficient by itself, IMHO
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate waitForInterrupt in the repository and read its surrounding implementation, then verify the __WFE and __SEV behavior against the nRF52 or CMSIS documentation. Done means confirming whether the sequence is correct and recording the maintainer-approved implementation or rationale.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100