refactor(ext_hub): Added port creation and freeing, cleaned up members

This commit is contained in:
Roman Leonov 2024-06-21 12:57:26 +02:00
parent a82b8565b7
commit a971ddf17a
2 changed files with 426 additions and 270 deletions

File diff suppressed because it is too large Load Diff

View File

@ -50,6 +50,7 @@ typedef struct {
esp_err_t (*get_speed)(void *por_hdl, usb_speed_t *speed); esp_err_t (*get_speed)(void *por_hdl, usb_speed_t *speed);
esp_err_t (*get_status)(void *port_hdl); esp_err_t (*get_status)(void *port_hdl);
esp_err_t (*set_status)(void *port_hdl, const usb_port_status_t *status); esp_err_t (*set_status)(void *port_hdl, const usb_port_status_t *status);
esp_err_t (*req_process)(void *port_hdl);
} ext_hub_port_driver_t; } ext_hub_port_driver_t;
/** /**