-
Notifications
You must be signed in to change notification settings - Fork 44
How to disable USB dev power from M480 #46
Copy link
Copy link
Open
Description
Hi There
In my app using a M482, I need to power down all connected devices to the USB host port of the M480.
There could be a hub, or a single device directly connected to the USB Host port.
How can I disable power supply of the USB connector, as well as the hub if connected ?
I guess I can check if a hub is connected and call clear_port_feature :
for (i = 1; i <= hub->bNbrPorts; i++)
{
ret = clear_port_feature(hub, FS_PORT_POWER, i);
}
}
But what about if no hub present ?
How to control SYS_GPB_MFPH_PB15MFP_HSUSB_VBUS_EN ?
Tahnks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels