Morse Micro IoT SDK  2.9.7

Detailed Description

Provides the "main" function that runs the operating system scheduler.

Typedefs

typedef void(* mmosal_app_init_cb_t) (void)
 Application initialization callback (see mmosal_main for details). More...
 

Functions

int mmosal_main (mmosal_app_init_cb_t app_init_cb)
 OS main function. More...
 

Typedef Documentation

◆ mmosal_app_init_cb_t

typedef void(* mmosal_app_init_cb_t) (void)

Application initialization callback (see mmosal_main for details).

Definition at line 39 of file mmosal.h.

Function Documentation

◆ mmosal_main()

int mmosal_main ( mmosal_app_init_cb_t  app_init_cb)

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_cbApplication 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.

Definition at line 20 of file mmosal_shim_bootloader.c.