../components/usb/hcd.c: In function '_intr_hdlr_chan':
../components/usb/hcd.c:637:14: error: 'USBH_HAL_CHAN_EVENT_SLOT_DONE' undeclared (first use in this function); did you mean 'USBH_HAL_CHAN_EVENT_NONE'?
case USBH_HAL_CHAN_EVENT_SLOT_DONE: {
^~~~~~~~~
USBH_HAL_CHAN_EVENT_NONE
../components/usb/hcd.c:637:14: note: each undeclared identifier is reported only once for each function it appears in
../components/usb/hcd.c:662:17: error: too few arguments to function 'usbh_hal_chan_activate'
usbh_hal_chan_activate(chan_obj, 0); //Start with the first descriptor
^~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:623:6: note: declared here
void usbh_hal_chan_activate(usbh_hal_chan_t chan_obj, void xfer_desc_list, int desc_list_len, int start_idx);
^~~~~~
../components/usb/hcd.c:666:14: error: 'USBH_HAL_CHAN_EVENT_SLOT_HALT' undeclared (first use in this function); did you mean 'USBH_HAL_CHAN_EVENT_HALT_REQ'?
case USBH_HAL_CHAN_EVENT_SLOT_HALT: {
^~~~~~~~~
USBH_HAL_CHAN_EVENT_HALT_REQ
../components/usb/hcd.c:676:13: error: implicit declaration of function 'usbh_hal_chan_clear_error'; did you mean 'usbh_hal_chan_get_error'? [-Werror=implicit-function-declaration]
usbh_hal_chan_clear_error(chan_obj);
^~~~~~~~~
usbh_hal_chan_get_error
../components/usb/hcd.c: In function '_port_unpause_all_pipes':
../components/usb/hcd.c:945:13: error: too few arguments to function 'usbh_hal_chan_activate'
usbh_hal_chan_activate(pipe->chan_obj, 0);
^~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:623:6: note: declared here
void usbh_hal_chan_activate(usbh_hal_chan_t chan_obj, void xfer_desc_list, int desc_list_len, int start_idx);
^~~~~~
../components/usb/hcd.c: In function 'hcd_port_command':
../components/usb/hcd.c:1134:21: error: implicit declaration of function 'usbh_hal_port_start'; did you mean 'usbh_hal_port_init'? [-Werror=implicit-function-declaration]
usbh_hal_port_start(port->hal);
^~~~~~~
usbh_hal_port_init
../components/usb/hcd.c:1144:21: error: implicit declaration of function 'usbh_hal_port_stop'; did you mean 'usbh_hal_port_init'? [-Werror=implicit-function-declaration]
usbh_hal_port_stop(port->hal);
^~~~~~
usbh_hal_port_init
../components/usb/hcd.c: In function '_pipe_wait_done':
../components/usb/hcd.c:1336:28: error: implicit declaration of function 'usbh_hal_chan_slot_request_halt'; did you mean 'usbh_hal_chan_request_halt'? [-Werror=implicit-function-declaration]
bool chan_halted = usbh_hal_chan_slot_request_halt(pipe->chan_obj);
^~~~~~~
usbh_hal_chan_request_halt
../components/usb/hcd.c: In function 'hcd_pipe_alloc':
../components/usb/hcd.c:1487:35: warning: passing argument 1 of 'usbh_hal_chan_set_ep_char' from incompatible pointer type [-Wincompatible-pointer-types]
usbh_hal_chan_set_ep_char(pipe->chan_obj, &pipe->ep_char);
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:551:52: note: expected 'usbh_hal_context_t *' {aka 'struct <anonymous> *'} but argument is of type 'usbh_hal_chan_t *' {aka 'struct <anonymous> *'}
void usbh_hal_chan_set_ep_char(usbh_hal_context_t *hal, usbh_hal_chan_t *chan_obj, usbh_hal_ep_char_t *ep_char);
~~~~~~~~~~~~~~~~~~~~^~~
../components/usb/hcd.c:1487:47: warning: passing argument 2 of 'usbh_hal_chan_set_ep_char' from incompatible pointer type [-Wincompatible-pointer-types]
usbh_hal_chan_set_ep_char(pipe->chan_obj, &pipe->ep_char);
^~~~~~~~~~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:551:74: note: expected 'usbh_hal_chan_t *' {aka 'struct <anonymous> *'} but argument is of type 'usbh_hal_ep_char_t *' {aka 'struct <anonymous> *'}
void usbh_hal_chan_set_ep_char(usbh_hal_context_t *hal, usbh_hal_chan_t *chan_obj, usbh_hal_ep_char_t *ep_char);
~~~~~~~~~~~~~~~~~^~~~~~~~
../components/usb/hcd.c:1487:5: error: too few arguments to function 'usbh_hal_chan_set_ep_char'
usbh_hal_chan_set_ep_char(pipe->chan_obj, &pipe->ep_char);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:551:6: note: declared here
void usbh_hal_chan_set_ep_char(usbh_hal_context_t *hal, usbh_hal_chan_t *chan_obj, usbh_hal_ep_char_t *ep_char);
^~~~~~~~~~~~~~~~~~~~~~~~~
../components/usb/hcd.c: In function 'hcd_pipe_update':
../components/usb/hcd.c:1538:35: warning: passing argument 1 of 'usbh_hal_chan_set_ep_char' from incompatible pointer type [-Wincompatible-pointer-types]
usbh_hal_chan_set_ep_char(pipe->chan_obj, &pipe->ep_char);
~~~~^~~~~~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:551:52: note: expected 'usbh_hal_context_t *' {aka 'struct <anonymous> *'} but argument is of type 'usbh_hal_chan_t *' {aka 'struct <anonymous> *'}
void usbh_hal_chan_set_ep_char(usbh_hal_context_t *hal, usbh_hal_chan_t *chan_obj, usbh_hal_ep_char_t *ep_char);
~~~~~~~~~~~~~~~~~~~~^~~
../components/usb/hcd.c:1538:47: warning: passing argument 2 of 'usbh_hal_chan_set_ep_char' from incompatible pointer type [-Wincompatible-pointer-types]
usbh_hal_chan_set_ep_char(pipe->chan_obj, &pipe->ep_char);
^~~~~~~~~~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:551:74: note: expected 'usbh_hal_chan_t *' {aka 'struct <anonymous> *'} but argument is of type 'usbh_hal_ep_char_t *' {aka 'struct <anonymous> *'}
void usbh_hal_chan_set_ep_char(usbh_hal_context_t *hal, usbh_hal_chan_t *chan_obj, usbh_hal_ep_char_t *ep_char);
~~~~~~~~~~~~~~~~~^~~~~~~~
../components/usb/hcd.c:1538:5: error: too few arguments to function 'usbh_hal_chan_set_ep_char'
usbh_hal_chan_set_ep_char(pipe->chan_obj, &pipe->ep_char);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:551:6: note: declared here
void usbh_hal_chan_set_ep_char(usbh_hal_context_t *hal, usbh_hal_chan_t *chan_obj, usbh_hal_ep_char_t *ep_char);
^~~~~~~~~~~~~~~~~~~~~~~~~
../components/usb/hcd.c: In function 'hcd_pipe_command':
../components/usb/hcd.c:1609:25: error: too few arguments to function 'usbh_hal_chan_activate'
usbh_hal_chan_activate(pipe->chan_obj, 0); //Start with the first descriptor
^~~~~~~~~~~~~~~~~~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:623:6: note: declared here
void usbh_hal_chan_activate(usbh_hal_chan_t *chan_obj, void *xfer_desc_list, int desc_list_len, int start_idx);
^~~~~~~~~~~~~~~~~~~~~~
../components/usb/hcd.c: In function '_xfer_desc_list_fill':
../components/usb/hcd.c:1661:69: error: 'USBH_HAL_XFER_DESC_FLAG_HALT' undeclared (first use in this function); did you mean 'USBH_HAL_XFER_DESC_FLAG_HOC'?
USBH_HAL_XFER_DESC_FLAG_SETUP | USBH_HAL_XFER_DESC_FLAG_HALT);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
USBH_HAL_XFER_DESC_FLAG_HOC
../components/usb/hcd.c:1664:75: error: 'USBH_HAL_XFER_DESC_FLAG_NULL' undeclared (first use in this function); did you mean 'USBH_HAL_XFER_DESC_FLAG_IN'?
usbh_hal_xfer_desc_fill(pipe->xfer_desc_list, 1, NULL, 0, USBH_HAL_XFER_DESC_FLAG_NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
USBH_HAL_XFER_DESC_FLAG_IN
../components/usb/hcd.c:1689:5: error: implicit declaration of function 'usbh_hal_chan_slot_acquire'; did you mean 'usbh_hal_chan_set_dir'? [-Werror=implicit-function-declaration]
usbh_hal_chan_slot_acquire(pipe->chan_obj, pipe->xfer_desc_list, pipe->flags.xfer_desc_list_len, (void *)pipe);
^~~~~~~~~~~~~~~~~~~~~~~~~~
usbh_hal_chan_set_dir
../components/usb/hcd.c: In function '_xfer_desc_list_continue':
../components/usb/hcd.c:1694:20: error: implicit declaration of function 'usbh_hal_chan_get_next_desc_index'; did you mean 'usbh_hal_chan_get_qtd_idx'? [-Werror=implicit-function-declaration]
int next_idx = usbh_hal_chan_get_next_desc_index(pipe->chan_obj);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
usbh_hal_chan_get_qtd_idx
../components/usb/hcd.c:1720:44: warning: passing argument 2 of 'usbh_hal_chan_activate' makes pointer from integer without a cast [-Wint-conversion]
usbh_hal_chan_activate(pipe->chan_obj, num_to_skip); //Start the next stage
^~~~~~~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:623:62: note: expected 'void *' but argument is of type 'int'
void usbh_hal_chan_activate(usbh_hal_chan_t *chan_obj, void *xfer_desc_list, int desc_list_len, int start_idx);
~~~~~~^~~~~~~~~~~~~~
../components/usb/hcd.c:1720:5: error: too few arguments to function 'usbh_hal_chan_activate'
usbh_hal_chan_activate(pipe->chan_obj, num_to_skip); //Start the next stage
^~~~~~~~~~~~~~~~~~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:623:6: note: declared here
void usbh_hal_chan_activate(usbh_hal_chan_t *chan_obj, void *xfer_desc_list, int desc_list_len, int start_idx);
^~~~~~~~~~~~~~~~~~~~~~
../components/usb/hcd.c: In function '_xfer_desc_list_parse':
../components/usb/hcd.c:1729:5: error: implicit declaration of function 'usbh_hal_chan_slot_release'; did you mean 'usbh_hal_chan_get_error'? [-Werror=implicit-function-declaration]
usbh_hal_chan_slot_release(pipe->chan_obj, &xfer_desc_list, &xfer_desc_len);
^~~~~~~~~~~~~~~~~~~~~~~~~~
usbh_hal_chan_get_error
../components/usb/hcd.c: In function 'hcd_irp_enqueue':
../components/usb/hcd.c:1820:9: error: too few arguments to function 'usbh_hal_chan_activate'
usbh_hal_chan_activate(pipe->chan_obj, 0); //Start with the first descriptor
^~~~~~~~~~~~~~~~~~~~~~
In file included from ../components/usb/hcd.c:25:
F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:623:6: note: declared here
void usbh_hal_chan_activate(usbh_hal_chan_t *chan_obj, void *xfer_desc_list, int desc_list_len, int start_idx);
^~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
[999/1025] Building C object esp-idf/touch_element/CMakeFiles/__idf_touch_element.dir/touch_element.c.obj
ninja: build stopped: subcommand failed.
../components/usb/hcd.c: In function '_intr_hdlr_chan': ../components/usb/hcd.c:637:14: error: 'USBH_HAL_CHAN_EVENT_SLOT_DONE' undeclared (first use in this function); did you mean 'USBH_HAL_CHAN_EVENT_NONE'? case USBH_HAL_CHAN_EVENT_SLOT_DONE: { ^
~~~~~~~~ USBH_HAL_CHAN_EVENT_NONE ../components/usb/hcd.c:637:14: note: each undeclared identifier is reported only once for each function it appears in ../components/usb/hcd.c:662:17: error: too few arguments to function 'usbh_hal_chan_activate' usbh_hal_chan_activate(chan_obj, 0); //Start with the first descriptor ^~~~~~ In file included from ../components/usb/hcd.c:25: F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:623:6: note: declared here void usbh_hal_chan_activate(usbh_hal_chan_t chan_obj, void xfer_desc_list, int desc_list_len, int start_idx); ^~~~~~ ../components/usb/hcd.c:666:14: error: 'USBH_HAL_CHAN_EVENT_SLOT_HALT' undeclared (first use in this function); did you mean 'USBH_HAL_CHAN_EVENT_HALT_REQ'? case USBH_HAL_CHAN_EVENT_SLOT_HALT: { ^~~~~~~~~ USBH_HAL_CHAN_EVENT_HALT_REQ ../components/usb/hcd.c:676:13: error: implicit declaration of function 'usbh_hal_chan_clear_error'; did you mean 'usbh_hal_chan_get_error'? [-Werror=implicit-function-declaration] usbh_hal_chan_clear_error(chan_obj); ^~~~~~~~~ usbh_hal_chan_get_error ../components/usb/hcd.c: In function '_port_unpause_all_pipes': ../components/usb/hcd.c:945:13: error: too few arguments to function 'usbh_hal_chan_activate' usbh_hal_chan_activate(pipe->chan_obj, 0); ^~~~~~ In file included from ../components/usb/hcd.c:25: F:/ESP32VSCODE/esp-idf/components/hal/include/hal/usbh_hal.h:623:6: note: declared here void usbh_hal_chan_activate(usbh_hal_chan_t chan_obj, void xfer_desc_list, int desc_list_len, int start_idx); ^~~~~~ ../components/usb/hcd.c: In function 'hcd_port_command': ../components/usb/hcd.c:1134:21: error: implicit declaration of function 'usbh_hal_port_start'; did you mean 'usbh_hal_port_init'? [-Werror=implicit-function-declaration] usbh_hal_port_start(port->hal); ^~~~~~~ usbh_hal_port_init ../components/usb/hcd.c:1144:21: error: implicit declaration of function 'usbh_hal_port_stop'; did you mean 'usbh_hal_port_init'? [-Werror=implicit-function-declaration] usbh_hal_port_stop(port->hal); ^~~~~~ usbh_hal_port_init ../components/usb/hcd.c: In function '_pipe_wait_done': ../components/usb/hcd.c:1336:28: error: implicit declaration of function 'usbh_hal_chan_slot_request_halt'; did you mean 'usbh_hal_chan_request_halt'? [-Werror=implicit-function-declaration] bool chan_halted = usbh_hal_chan_slot_request_halt(pipe->chan_obj); ^~~~~~~usbh_hal_chan_request_halt ../components/usb/hcd.c: In function 'hcd_pipe_alloc': ../components/usb/hcd.c:1487:35: warning: passing argument 1 of 'usbh_hal_chan_set_ep_char' from incompatible pointer type [-Wincompatible-pointer-types] usbh_hal_chan_set_ep_char(pipe->chan_obj, &pipe->ep_char);