doc: mailbox: fix typos and clarify meaning of struct field

This fixes some typos. Also fix the meaning of a struct field
where the confusion caused by copy-and-paste from another
field.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2019-09-04 10:51:01 -07:00 committed by Anas Nashif
commit 863548cf19

View file

@ -79,7 +79,7 @@ Thread Compatibility
==================== ====================
A sending thread can specify the address of the thread to which the message A sending thread can specify the address of the thread to which the message
is sent, or it send it to any thread by specifying :c:macro:`K_ANY`. is sent, or send it to any thread by specifying :c:macro:`K_ANY`.
Likewise, a receiving thread can specify the address of the thread from which Likewise, a receiving thread can specify the address of the thread from which
it wishes to receive a message, or it can receive a message from any thread it wishes to receive a message, or it can receive a message from any thread
by specifying :c:macro:`K_ANY`. by specifying :c:macro:`K_ANY`.
@ -180,7 +180,8 @@ internal mailbox use only.
The address of the desired sending thread. Set it to :c:macro:`K_ANY` The address of the desired sending thread. Set it to :c:macro:`K_ANY`
to receive a message sent by any thread. Leave this field uninitialized to receive a message sent by any thread. Leave this field uninitialized
when sending a message. The mailbox updates this field when sending a message. The mailbox updates this field
with the actual sender's address once the message is received. with the actual sender's address when the message is put into
the mailbox.
Sending a Message Sending a Message
================= =================
@ -340,7 +341,7 @@ data while the previously sent block is being processed
while (1) { while (1) {
/* allocate a memory block to hold the message data */ /* allocate a memory block to hold the message data */
k_mem_pool_alloc(&mp_pool, &send_msg.tx_block, 4096, K_FOREVER); k_mem_pool_alloc(&my_pool, &send_msg.tx_block, 4096, K_FOREVER);
/* keep overwriting the hardware-generated data in the block */ /* keep overwriting the hardware-generated data in the block */
/* until the previous message has been received by the consumer */ /* until the previous message has been received by the consumer */