#if !(UBINOS__UBIK_TEST__EXCLUDE_TASKTESTSET == 1)
#include <stdio.h>
#define TASKLOOPCOUNT 10
#define TASKLOOPINTERVALMS 1000
static void tasktest00_taskfunc(void * arg) {
unsigned int i;
for (i=0; i<TASKLOOPCOUNT; i++) {
printf("hello world!\r\n");
}
}
int r;
if (0 != r) {
printf("fail at task_create(), err=%d\r\n", r);
r = -1;
goto end0;
}
if (0 != r) {
printf("fail at task_join(), err=%d\r\n", r);
r = -1;
goto end0;
}
r = 0;
end0:
return r;
}
#endif
int task_create(task_pt *task_p, taskfunc_ft func, void *arg, int priority, unsigned int stackdepth, const char *name)