Skip to content

USB Host Stack not functional with UX_HOST_STANDALONE defined #167

Open
@Ryzee119

Description

@Ryzee119

Describe the bug
The USB Host Stack does not function when trying to use it with UX_HOST_STANDALONE..

To Reproduce
Steps to reproduce the behavior:

  1. Compile project with UX_HOST_STANDALONE
  2. I happened to be using the OHCI backend but would be valid for any backend.

Some issues that I identified early in the device state machine:

_ux_host_stack_rh_port_reset does not return a UX_STATE value. So the status value is invalid here.

status = _ux_host_stack_rh_port_reset(device);

‎_ux_host_stack_rh_port_reset‎ also returns UX_PORT_RESET_FAILED because it fails the check on actual_flags as _ux_host_event_flags_get is stubbed out.

status = _ux_host_event_flags_get(&hcd_ohci -> ux_hcd_ohci_event_flags_group,

Not sure if this is intended to function with UX_HOST_STANDALONE or its for testing only?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions