Hi,
I'm experimenting with the USBX HID Host stack on a SK-S7G2 board.
Added
- USBX Host Configuration
- USBX Host Class HUB
- USBX Host Class HID
to a new thread created in the Blinky ThreadX.
Added a callback for the USB Host Event Notification.
When a usb mouse is plugged in the notification callback is called as expected.
When a breakpoint is set in the protected code in the function _ux_host_class_hid_mouse_entry the code stops at the breakpoint when pluggin a mouse in.
A breakpoint in _ux_host_class_hid_mouse_callback also get called when the mouse is moved or a button is pressed on the mouse.
So all works as expected.
The big question for me is how to get this mouse data into my own thread so the move\button data can be used in the application?
Thanks.
Jefe