Skip to content

Commit

Permalink
#32 Adding the sleep functions to the infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
trifuns authored and aabadie committed Jun 23, 2022
1 parent c78fb5d commit 0e69d5d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions projects/00std_us_ranging/00std_us_ranging.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@
* @brief The program starts executing here.
*/
int main(void) {

while (1) {
__WFE();
__SEV();
__WFE();
}

// one last instruction, doesn't do anything, it's just to have a place to put a breakpoint.
__NOP();
}
}

0 comments on commit 0e69d5d

Please sign in to comment.