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 committed Jun 21, 2022
1 parent 402461c commit e211187
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 e211187

Please sign in to comment.