Provides the "main" function that runs the operating system scheduler.
◆ mmosal_app_init_cb_t
| typedef void(* mmosal_app_init_cb_t) (void) |
Application initialization callback (see mmosal_main for details).
Definition at line 40 of file mmosal.h.
◆ mmosal_main()
OS main function.
This should be invoked after early initialization. If further initialization is required after the scheduler is started an optional app_init_cb argument can be provided and the given function with be executed in a thread that will subsequently be destroyed if it returns.
- Parameters
-
| app_init_cb | Application initialization callback that will be invoked after the scheduler has been started. This optional (may be NULL). If specified, the function will run in its own thread and may or may not return. |
- Returns
- an error code if something goes wrong, otherwise does not return.