mirror of
https://github.com/apache/nuttx.git
synced 2026-08-29 13:20:45 +00:00
rndis on spresense
* arch/arm/src/cxd56xx: Fix ep0 out packet handling in cxd56_usbdev.c
This change fixes to handle ep0 out packet which exceeds EP0_MAXSIZE.
For example, 76 bytes of out packet is sent from rndis host during
rndis negotiation and finally the packet is split into two out packets
(64 bytes out packet + 12 bytes out packet). To handle these packets,
actual ep0reqlen is stored during ep0 out setup stage, and if all
out packets are received, it dispatches to cxd56_ep0setup(), otherwise,
it sets up the internal USB DMA to receive remaining out packets.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* configs/spresense: Add support for rndis configuration
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| cxd56_appinit.c | ||
| cxd56_boot.c | ||
| cxd56_bringup.c | ||
| cxd56_clock.c | ||
| cxd56_ioctl.c | ||
| cxd56_leds.c | ||
| cxd56_netinit.c | ||
| cxd56_ostest.c | ||
| cxd56_power.c | ||
| cxd56_sdcard.c | ||
| cxd56_usbmsc.c | ||
| Makefile | ||
| spresense.h | ||