zephyr/include
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
..
arch microkernel: introduce support for private tasks 2016-02-05 20:15:18 -05:00
bluetooth Bluetooth: Redesign Bluetooth init API 2016-02-05 20:14:44 -05:00
drivers Remove references to BSP from include/ directory 2016-02-05 20:14:43 -05:00
microkernel microkernel: introduce support for private tasks 2016-02-05 20:15:18 -05:00
misc printk.h: don't break if CONFIG_PRINTK undefined 2016-02-05 20:14:45 -05:00
net net: Change the remaining doxygen comments to javadoc style 2016-02-05 20:14:35 -05:00
toolchain Remove obsolete SYS_PREKERNEL_INIT() macro 2016-02-05 20:14:37 -05:00
atomic.h doxygen: javadoc style 2016-02-05 20:14:32 -05:00
device.h Remove trailing characters from macro defintion 2016-02-05 20:14:37 -05:00
gpio.h doxygen: javadoc style 2016-02-05 20:14:32 -05:00
i2c.h doxygen: javadoc style 2016-02-05 20:14:32 -05:00
init.h init: Split pure_init into pure_init_{early,late} levels 2016-02-05 20:14:37 -05:00
kernel_version.h version: Update version handling and code 2016-02-05 20:14:27 -05:00
linker-defs.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
linker-tool-gcc.h toolchain: add support for iamcu toolchain 2016-02-05 20:14:38 -05:00
linker-tool.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
microkernel.h Rename microkernel/sema.h to semaphore.h 2016-02-05 20:14:25 -05:00
nanokernel.h Doxygen: Nanokernel semaphore APIs comments to header files. 2016-02-05 20:14:42 -05:00
section_tags.h Rename VXMICRO_ARCH_arc -> CONFIG_ARC 2016-02-05 20:14:16 -05:00
sections.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
spi.h spi: Fix the generic API header 2016-02-05 20:14:39 -05:00
sw_isr_table.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
sys_clock.h Kconfig: fix SYS_CLOCK_HW_CYCLES_PER_SEC dependencies 2016-02-05 20:14:42 -05:00
toolchain.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00