usb_h_init

USB HCD Initialization.

static int32_t usb_h_init(
    struct usb_h_desc * drv,
    void * hw,
    void * prvt
)

Parameters

drv

Type: struct usb_h_desc *

Pointer to the HCD driver instance

hw

Type: void *

Pointer to hardware base

prvt

Type: void *

The private driver data (implement specific)

Returns

Type: int32_t

Operation result status

ERR_DENIED

Hardware has been enabled

ERR_NONE

Operation done successfully