unified: Conditionally declare k_pipe_block_put()
The routine k_pipe_block_put() is only available if the system has been configured for asynchronous pipe sends. Change-Id: I642fecc961ca4ef4ac8839a01ffd4125c30794b8 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
e5d9c58301
commit
2fef023c3d
1 changed files with 2 additions and 0 deletions
|
@ -998,6 +998,7 @@ extern int k_pipe_get(struct k_pipe *pipe, void *data,
|
|||
size_t bytes_to_read, size_t *bytes_read,
|
||||
size_t min_xfer, int32_t timeout);
|
||||
|
||||
#if (CONFIG_NUM_PIPE_ASYNC_MSGS > 0)
|
||||
/**
|
||||
* @brief Send a message to the specified pipe
|
||||
*
|
||||
|
@ -1016,6 +1017,7 @@ extern int k_pipe_get(struct k_pipe *pipe, void *data,
|
|||
*/
|
||||
extern void k_pipe_block_put(struct k_pipe *pipe, struct k_mem_block *block,
|
||||
size_t size, struct k_sem *sem);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* memory management
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue