USBD_PHDC_OS_Init

Description

Initialize PHDC OS layer.

Files

usbd_phdc_os.h / usbd_phdc_os.c

Prototype

void  USBD_PHDC_OS_Init (USBD_ERR  *p_err);


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

  1. This function should be used to initialize all RTOS layer’s internal variables / tasks of every class instances. It will be called only once.
  2. In case creation of semaphore, mutex, or other signal fails, the function should assign USBD_ERR_OS_SIGNAL_CREATE to p_err and return immediately. If any other error occurs, USBD_ERR_OS_INIT_FAIL should be assigned to p_err. Otherwise, USBD_ERR_NONE should be used.