Description
Initialize PHDC OS layer.
Files
usbd_phdc_os.h / usbd_phdc_os.c
Prototype
Arguments
p_err
Pointer to variable that will receive the return error code from this function.
Returned Value
None.
Callers
Personal Healthcare Device Class.
Implementation guidelines
- This function should be used to initialize all RTOS layer’s internal variables / tasks of every class instances. It will be called only once.
- In case creation of semaphore, mutex, or other signal fails, the function should assign
USBD_ERR_OS_SIGNAL_CREATE
top_err
and return immediately. If any other error occurs,USBD_ERR_OS_INIT_FAIL
should be assigned top_err
. Otherwise,USBD_ERR_NONE
should be used.