File tree Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ static void adc_task(void *arg)
135
135
/**
136
136
* Application main entry point
137
137
*/
138
- void user_main ( void )
138
+ int main ( int argc , char * argv [] )
139
139
{
140
140
/*
141
141
* Initialize library and Setup STDIO
@@ -148,4 +148,9 @@ void user_main(void)
148
148
os_create_task (adc_task , NULL , FALSE);
149
149
150
150
printf ("System Initialization finished\n" );
151
+
152
+ while (1 ) {
153
+ /* main task loop */
154
+ sleep (1 );
155
+ }
151
156
}
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ static void gpio_blink_task(void *arg)
137
137
/**
138
138
* Application main entry point
139
139
*/
140
- void user_main ( void )
140
+ int main ( int argc , char * argv [] )
141
141
{
142
142
/*
143
143
* Initialize library and Setup STDIO
@@ -150,4 +150,8 @@ void user_main(void)
150
150
os_create_task (gpio_blink_task , NULL , FALSE);
151
151
152
152
printf ("System Initialization finished\n" );
153
+
154
+ while (1 ) {
155
+ sleep (1 );
156
+ }
153
157
}
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ static void socket_task(void *arg)
187
187
/**
188
188
* Application main entry point
189
189
*/
190
- void user_main ( void )
190
+ int main ( int argc , char * argv [] )
191
191
{
192
192
/*
193
193
* Initialize library and Setup STDIO
@@ -203,4 +203,9 @@ void user_main(void)
203
203
os_create_task (socket_task , NULL , FALSE);
204
204
205
205
printf ("System Initialization finished\n" );
206
+
207
+ while (1 ) {
208
+ /* Main task loop */
209
+ sleep (1 );
210
+ }
206
211
}
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ static void socket_task(void *arg)
193
193
/**
194
194
* Application main entry point
195
195
*/
196
- void user_main ( void )
196
+ int main ( int argc , char * argv [] )
197
197
{
198
198
/*
199
199
* Initialize library and Setup STDIO
@@ -208,4 +208,9 @@ void user_main(void)
208
208
os_create_task (socket_task , NULL , FALSE);
209
209
210
210
printf ("System Initialization finished\n" );
211
+
212
+ while (1 ) {
213
+ /* Main task loop */
214
+ sleep (1 );
215
+ }
211
216
}
You can’t perform that action at this time.
0 commit comments