Part Number: PROCESSOR-SDK-J784S4
Other Parts Discussed in Thread: SYSBIOS
Tool/software:
I am trying to understand in what unit I should input the timeouts to the IPC driver API commands RPMessage_recv and RPMessage_getRemoteEndPt().
This is PDK API Guide for J721E, 08.06, see
PDK API Guide for J721E: IPC Driver Header (ti.com)
I want to understand what I should put as timeout in these calls for QNX - navigated to the documentation from psdkqa/08.06.00.07/qnx/docs/user_guide/qnx_sdk_components_j721e.html and psdkqa/08.06.00.07/qnx/docs/user_guide/qnx_sdk_components_j721e.html#ipc-resource-manager
- The documentation for RPMessage_getRemoteEndPt() states:
Suitable values for timeout are the same as for the ti.sysbios.knl.Semaphore module.
timeout[IN] Timeout value (in system ticks)
- The documentation for RPMessage_getRemoteEndPt() states:
timeout[IN] Maximum duration to wait for a message in microseconds.
When I try to follow the actual code, I end up that both API calls are using the SemaphoreP in ti/osal. This states:
* @param timeout Timeout (in milliseconds) to wait for the semaphore to be posted (signalled).
extern SemaphoreP_Status SemaphoreP_pend(SemaphoreP_Handle semPhandle,
uint32_t timeout);
Concrete implementations either seems to use system ticks (nonos) or milliseconds (freertos, safertos).
Could you please explain what units I should use for the timeout parameter to the IPC driver calls RPMessage_recv and RPMessage_getRemoteEndPt() in QNX context?