-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path._main.c
38 lines (30 loc) · 911 Bytes
/
._main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*---------------------------------------------------------------------------*/
/* */
/* WARN: Please don't modify this default file!!! */
/* */
/*---------------------------------------------------------------------------*/
#include <tinyara/config.h>
#include <stdio.h>
#include <unistd.h>
#ifndef APP_PRIORITY
#define APP_PRIORITY 100
#endif
#ifndef APP_STACKSIZE
#define APP_STACKSIZE 2048
#endif
extern int main(int argc, char *argv[]);
int _main(int argc, char *argv[])
{
int pid;
/*
* Create Task For async job
*/
pid = task_create("sensorbd", APP_PRIORITY, APP_STACKSIZE, main, argv);
if (pid < 0) {
/*
* Error : Can't Create task
*/
printf("sensorbd is not started, err = %d\n", pid);
}
return 0;
}