Lines Matching full:app
24 #include <app.h>
30 static void start_app(const struct app_descriptor *app);
35 const struct app_descriptor *app; in apps_init() local
38 for (app = __apps_start; app != __apps_end; app++) { in apps_init()
39 if (app->init) in apps_init()
40 app->init(app); in apps_init()
44 for (app = __apps_start; app != __apps_end; app++) { in apps_init()
45 if (app->entry && (app->flags & APP_FLAG_DONT_START_ON_BOOT) == 0) { in apps_init()
46 start_app(app); in apps_init()
53 const struct app_descriptor *app = (const struct app_descriptor *)arg; in app_thread_entry() local
55 app->entry(app, NULL); in app_thread_entry()
60 static void start_app(const struct app_descriptor *app) in start_app() argument
62 …uint32_t stack_size = (app->flags & APP_FLAG_CUSTOM_STACK_SIZE) ? app->stack_size : DEFAULT_STACK_… in start_app()
64 printf("starting app %s\n", app->name); in start_app()
65 …thread_t *t = thread_create(app->name, &app_thread_entry, (void *)app, DEFAULT_PRIORITY, stack_siz… in start_app()