Skip to content

How to disable USB dev power from M480 #46

@jeromeDms

Description

@jeromeDms

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions