-
Notifications
You must be signed in to change notification settings - Fork 8
usb: Notify apps about usb device insertion #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
879b75b to
a00d89e
Compare
ce9f923 to
3d4143b
Compare
16177ea to
9d391fe
Compare
7db3e6c to
331ac30
Compare
3d4143b to
b86226b
Compare
331ac30 to
7cae328
Compare
Unit Test Results7 958 tests 7 434 ✅ 42m 42s ⏱️ Results for commit d8e07db. ♻️ This comment has been updated with latest results. |
2858d50 to
fb22e37
Compare
JIRA: RTOS-1024
fb22e37 to
5fa5e7e
Compare
5fa5e7e to
1934a8f
Compare
1934a8f to
c35da58
Compare
libusb/include/usbdriver.h
Outdated
| #include <posix/idtree.h> | ||
|
|
||
| #define USB_DRVNAME_MAX 10 | ||
| #define USB_DEVPATH_MAX 32 /* intentionally not using PATH_MAX, as we expect devices from /dev */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this being used anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I think the idea was to use this for devPath in this repo and path in USB device drivers.
ef8983b to
31e2379
Compare
Drivers can now return some useful information back to the usbhost about the state of inserted device JIRA: RTOS-1024
JIRA: RTOS-1024
JIRA: RTOS-1024
JIRA: RTOS-1024
Some devices store information in device descriptors in ASCII (even though string descriptors are to be treated as UTF16 per USB spec...), in which case converting from UTF16 to ASCII no matter what would cause loss of information JIRA: RTOS-1024
JIRA: RTOS-1024
Multifunction (multi-interface) devices may be served by multiple drivers JIRA: RTOS-1024
31e2379 to
00f6411
Compare
The usbhost now also creates symlinks to these driver devices named `/dev/usb-<vid>-<pid>-if<ifnum>" that can be looked up on and resolved via `canonicalize_file_name(path)` to acquire the needed oid. JIRA: RTOS-1024
Not resetting caused subsequent msgSend calls to send the modified and incorrect messages JIRA: RTOS-1024
00f6411 to
d8e07db
Compare
JIRA: RTOS-1024
Description
Motivation and Context
Types of changes
usb_insertion_handler_tsignature has changedHow Has This Been Tested?
Checklist:
Special treatment
usb: Adapt drivers to events API phoenix-rtos-devices#546