RDM Startup Macros used by examples, tools, and tests. More...
Macros | |
#define | RDM_STARTUP_HOOK |
#define | RDM_SHUTDOWN_HOOK |
#define | RDM_STARTUP_EXAMPLE(name) |
RDM Startup Macros used by examples, tools, and tests.
#define RDM_SHUTDOWN_HOOK |
Shutdown hook
Shutdown hook for examples, tools, and tests that are using any of the RDM_STARTUP macros
#define RDM_STARTUP_EXAMPLE | ( | name | ) |
Startup for examples
This sets up a main function, with a startup hook, a call to a named main function, and a shutdown hook.
On some embedded platforms you may want to define RDM_STARTUP_HOOK to change the current working directory or do some other environment setup.
The named main function has the name main_NAME, where NAME is the parameter to this macro. This macro sets up a call to rdm_threadMain which in turn will call the named main function. Exactly what rdm_threadMain does is an implementation detail.
#define RDM_STARTUP_HOOK |
Startup hook
Startup hook for examples, tools, and tests that are using any of the RDM_STARTUP macros