mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-17 05:22:32 +00:00
This enable defining mailboxes in source code in addition to defining in MDEF files. This introduces the macro DEFINE_MAILBOX(mailbox_name). The mailboxes created this way are the same, in functionality, as those defined in MDEF files. They can be manipulated by the standard microkernel mailbox APIs. Define the mailbox using: DEFINE_MAILBOX(mailbox1); and "mailbox1" can be used, for example: task_mbox_put(mailbox1, &msg); or, task_mbox_get(mailbox1, &msg); etc. To use the mailbox defined in another source file, simply add: extern const kmox_t mailbox1; to the desired C or header file. Change-Id: I32d4194af740f96fc8df8c6cd3144a0c9accb4ec Signed-off-by: Daniel Leung <daniel.leung@intel.com> |
||
---|---|---|
.. | ||
base_api.h | ||
command_packet.h | ||
event.h | ||
fifo.h | ||
mailbox.h | ||
memory_map.h | ||
memory_pool.h | ||
mutex.h | ||
pipe.h | ||
semaphore.h | ||
task_irq.h | ||
task.h | ||
ticks.h |