co_process co_process_create(const char *name, co_function run, int argc, ...);
This function creates a process. This function must be called from within the configuration function of your application.
The arguments for co_process_create are as follows:
A pointer to the created process. This return value may subsequently be used as an argument to the function co_process_config.
Processes created using co_process_create represent specific instances of the specified run function. It is possible (and common) for co_process_create to be called repeatedly for the same process in order to create multiple instances of a run function.
In simulation, this function prints an error message and terminates the application if it is called from outside the configuration function, or if the Application Monitor is being used and a name argument is not supplied (== NULL).