Home
last modified time | relevance | path

Searched refs:dev_obj (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.6.0/components/usb/
Dusbh.c132 device_t *dev_obj = heap_caps_calloc(1, sizeof(device_t), MALLOC_CAP_DEFAULT); in device_alloc() local
134 if (dev_obj == NULL || dev_desc == NULL) { in device_alloc()
142 .context = (void *)dev_obj, in device_alloc()
153 dev_obj->dynamic.state = USB_DEVICE_STATE_DEFAULT; in device_alloc()
154 dev_obj->constant.default_pipe = default_pipe_hdl; in device_alloc()
155 dev_obj->constant.port_hdl = port_hdl; in device_alloc()
157 dev_obj->constant.speed = speed; in device_alloc()
158 dev_obj->constant.desc = dev_desc; in device_alloc()
159 *dev_obj_ret = dev_obj; in device_alloc()
165 heap_caps_free(dev_obj); in device_alloc()
[all …]