Skip to content
Snippets Groups Projects
Commit f2c6fbab authored by Craig Duffy's avatar Craig Duffy
Browse files

Update main.c

parent f192490b
No related branches found
No related tags found
No related merge requests found
......@@ -10,19 +10,21 @@
* @retval None
*/
#include <stdio.h>
int main(void)
{
int count;
int i = 0;
int off = 5;
void inc(void){
i += off;
}
int main(void)
{
printf("Welcome to the ESP Lab 1 test program \n");
printf("this program does next to nothing!\n");
count = 0;
/* Infinite loop */
while (1)
{
count++;
while (1) {
inc();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment