mirror of
https://github.com/apache/nuttx.git
synced 2026-09-08 18:06:33 +00:00
rp2040_allocep() indexes the endpoint's DPSRAM buffer/control registers via RP2040_DPINDEX(eplog) and RP2040_EPINDEX(eplog), both of which take the transfer direction from the direction bit of 'eplog' itself instead of trusting the explicit 'in' argument that is also passed to this function. This is harmless for callers that always encode the direction bit into 'eplog' (e.g. CDC/ACM's CDCACM_MKEPBULKIN()/MKEPINTIN(), which OR in USB_DIR_IN), since 'in' then always agrees with that bit. But drivers/usbdev/usbdev_fs.c (the generic ADB/fastboot class driver) calls DEV_ALLOCEP() with a bare endpoint number in 'eplog' (no direction bit) and passes the direction only via the separate 'in' parameter - matching this function's own "direction bit ignored" contract for 'eplog' (see its Input Parameters doc, and the pre-existing "Ignore any direction bits in the logical address" comment, both dating back to the original driver in |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||