You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Donny9 (via GitHub)" <gi...@apache.org> on 2024/09/08 09:56:03 UTC
[PR] driver/usbdev: support userspace to access ep0 [nuttx]
Donny9 opened a new pull request, #13320:
URL: https://github.com/apache/nuttx/pull/13320
## Summary
driver/usbdev: support userspace to access ep0 by device node, eg: /dev/mtp/ep0
Packets with receivers being interfaces or endpoints in the EP0 setup packet are sent to the application layer(because the usbdev fs driver is common usb class driver, don't deal different class logic), where they are received and an ACK is sent back.
To achieve this, a character device node for EP0 is created in usbdevfs, along with a ctrlreq queue. The setup packet is saved to this queue, and the application is notified through the node.
## Impact
Add usb ep0 device node
## Testing
mtp
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] driver/usbdev: support userspace to access ep0 [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #13320:
URL: https://github.com/apache/nuttx/pull/13320
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] driver/usbdev: support userspace to access ep0 [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #13320:
URL: https://github.com/apache/nuttx/pull/13320#issuecomment-2343498680
> @Donny9 please include an Apps/ example or include a proper Documentation/ otherwise it will generate more support for us in the future, like the SPI Slave example
fastboot is one of examples: https://github.com/apache/nuttx-apps/pull/2562
adb is another: https://github.com/apache/nuttx-apps/tree/master/system/adb
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org