zephyr/include/microkernel
Daniel Leung b5517ab61c microkernel: introduce support for private pipes
This enable defining pipes in source code in addition to
defining in MDEF files. This introduces the macro
DEFINE_PIPE(pipe_name, ...). The pipes created this
way are the same, in functionality, as those defined in MDEF
files. They can be manipulated by the standard microkernel
pipe APIs.

Define the pipe using:

  DEFINE_PIPE(pipe1, size);

and "pipe1" can be used, for example:

  task_pipe_put(pipe1, ...);

or,

  task_pipe_get(pipe1, ...);

etc.

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

extern const kpipe_t pipe1;

to the desired C or header file.

Change-Id: Iae8e04706359bc18aae51acc75df3e3d26388882
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-02-05 20:15:18 -05:00
..
base_api.h microkernel: redefine pipe object identifier type 2016-02-05 20:15:18 -05:00
command_packet.h Remove trailing semicolon in definition of CMD_PKT_SET_INSTANCE() 2016-02-05 20:14:42 -05:00
event.h Doxygen: microkernel: Move event documentation from c to .h file 2016-02-05 20:14:39 -05:00
fifo.h microkernel: introduce support for private FIFOs 2016-02-05 20:15:18 -05:00
mailbox.h microkernel: introduce support for private mailboxes 2016-02-05 20:15:18 -05:00
memory_map.h doxygen: memory_map: update in-code documentation 2016-02-05 20:14:38 -05:00
memory_pool.h Rename microkernel/pool.h to memory_pool.h 2016-02-05 20:14:25 -05:00
mutex.h microkernel: introduce support for private mutexes 2016-02-05 20:14:46 -05:00
pipe.h microkernel: introduce support for private pipes 2016-02-05 20:15:18 -05:00
semaphore.h microkernel: introduce support for private semaphores 2016-02-05 20:15:18 -05:00
task_irq.h Rename microkernel/k_types.h to base_api.h 2016-02-05 20:14:25 -05:00
task.h microkernel: introduce support for private tasks 2016-02-05 20:15:18 -05:00
ticks.h Rename kernel's clock_vars.h to sys_clock.h 2016-02-05 20:14:26 -05:00