Lines Matching refs:app
19 static void start_app(const struct app_descriptor *app, bool detach);
23 const struct app_descriptor *app; in apps_init() local
26 for (app = &__start_apps; app != &__stop_apps; app++) { in apps_init()
27 if (app->init) in apps_init()
28 app->init(app); in apps_init()
32 for (app = &__start_apps; app != &__stop_apps; app++) { in apps_init()
33 if (app->entry && (app->flags & APP_FLAG_NO_AUTOSTART) == 0) { in apps_init()
34 start_app(app, true); in apps_init()
40 const struct app_descriptor *app = (const struct app_descriptor *)arg; in app_thread_entry() local
42 app->entry(app, NULL); in app_thread_entry()
47 static void start_app(const struct app_descriptor *app, bool detach) { in start_app() argument
48 …uint32_t stack_size = (app->flags & APP_FLAG_CUSTOM_STACK_SIZE) ? app->stack_size : DEFAULT_STACK_… in start_app()
50 printf("starting app %s\n", app->name); in start_app()
51 …thread_t *t = thread_create(app->name, &app_thread_entry, (void *)app, DEFAULT_PRIORITY, stack_siz… in start_app()
62 const struct app_descriptor *app; in app_start_by_name() local
65 for (app = &__start_apps; app != &__stop_apps; app++) { in app_start_by_name()
66 if (!strcmp(app->name, name)) { in app_start_by_name()
67 start_app(app, detached); in app_start_by_name()
76 const struct app_descriptor *app; in list_apps() local
78 for (app = &__start_apps; app != &__stop_apps; app++) { in list_apps()
79 printf("%s\n", app->name); in list_apps()
119 STATIC_COMMAND_END(app);