diff options
| author | Egahp <[email protected]> | 2025-08-30 19:24:02 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-30 19:24:02 +0800 |
| commit | 5d5b61a606b1d2ba5512ef3c71fb11975eed5e40 (patch) | |
| tree | 8f593c4a65226036b17b75d9d35c94718b5e431e /platform | |
| parent | 257b1d4d20d2ddc77de33dad041088ba7500400d (diff) | |
feat: host add event callback mechanism similar to device
* fix: fix warning for speed_table
* fix(port/dwc2/usb_hc_dwc2): add roothub.speed init
* feat(usbh_core): add event_callback
* fix(usbh_hub): fix event device reset port
* fix(usbh_hub): remove event init when init failed
* feat(usbh_core): add default dummy_event_callback
* fix(usbh_hub): emit reset event only on successful reset
* fix(usbh_core): emit interface start only on successful connect class driver
* feat(usbh_core): change event_callback to typedef
* feat(port): update port usbh init params
* doc: update usbh_initialize desc
* fix(usbh_core): check result from ret == 0 change to ret >= 0
---------
Signed-off-by: egahp <[email protected]>
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/rtthread/usb_msh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/rtthread/usb_msh.c b/platform/rtthread/usb_msh.c index a153ed05..fc5cdaee 100644 --- a/platform/rtthread/usb_msh.c +++ b/platform/rtthread/usb_msh.c @@ -21,7 +21,7 @@ int usbh_init(int argc, char **argv) busid = atoi(argv[1]); reg_base = strtoll(argv[2], NULL, 16); - usbh_initialize(busid, reg_base); + usbh_initialize(busid, reg_base, NULL); return 0; } |
