zephyr/doc/object
Daniel Leung 2bc5880d85 microkernel: introduce support for private tasks
This enable defining tasks in source code in addition to
defining in MDEF files. This introduces the macro
DEFINE_TASK(task_name). The tasks created this
way are the same, in functionality, as those defined in MDEF
files. They can be manipulated by the standard microkernel
task APIs.

Define the task using:

  DEFINE_TASK(task1, priority, entry_func, stack_size, groups);

and "task1" can be used, for example:

  task_start(task1);

or,

  task_abort(task1);

etc.

To use the task defined in another source file, simply add:

extern const ktask_t task1;

to the desired C or header file.

Change-Id: Ib2f3572950ca74b359b7fde1ccd6cfd04783eefb
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-02-05 20:15:18 -05:00
..
figures Add Object Documentation 2016-02-05 20:14:11 -05:00
contexts.rst DOC: Updated the overview modules to reflect the renaming of files. 2016-02-05 20:14:37 -05:00
fibers.rst doc: Doc changes made to reflects new ISR code. 2016-02-05 20:14:38 -05:00
interrupts.rst doc: Doc changes made to reflects new ISR code. 2016-02-05 20:14:38 -05:00
microkernel_events.rst doc: Enhancements for microkernel event objects 2016-02-05 20:14:41 -05:00
microkernel_fifos.rst microkernel: introduce support for private FIFOs 2016-02-05 20:15:18 -05:00
microkernel_mailboxes.rst microkernel: introduce support for private mailboxes 2016-02-05 20:15:18 -05:00
microkernel_memory_maps.rst DOC: Fix broken tables of the microkernel object documentation. 2016-02-05 20:14:38 -05:00
microkernel_memory_pools.rst DOC: Split the microkernel object document into a file per object type. 2016-02-05 20:14:37 -05:00
microkernel_mutexes.rst microkernel: introduce support for private mutexes 2016-02-05 20:14:46 -05:00
microkernel_pipes.rst doc: Enhancements for microkernel pipe objects 2016-02-05 20:14:42 -05:00
microkernel_semaphores.rst microkernel: introduce support for private semaphores 2016-02-05 20:15:18 -05:00
microkernel_task_IRQs.rst doc: Doc changes made to reflects new ISR code. 2016-02-05 20:14:38 -05:00
microkernel.rst DOC: Split the microkernel object document into a file per object type. 2016-02-05 20:14:37 -05:00
nanokernel.rst DOC: Renames the Object Documentation files prior to restructure. 2016-02-05 20:14:37 -05:00
object.rst DOC: Updated the overview modules to reflect the renaming of files. 2016-02-05 20:14:37 -05:00
tasks.rst microkernel: introduce support for private tasks 2016-02-05 20:15:18 -05:00