update doc

This commit is contained in:
hathach 2019-11-01 10:13:19 +07:00
parent 981e64d8a1
commit ac0203b42f
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,8 @@ number and direction which usually determines where to write the buffer info. Th
written to a specific location in memory and the peripheral is told the data is valid. (Maybe by writing a 1 to a written to a specific location in memory and the peripheral is told the data is valid. (Maybe by writing a 1 to a
register or setting a counter register to 0 for OUT or length for IN.) register or setting a counter register to 0 for OUT or length for IN.)
The transmit buffer alignment is determined by `CFG_TUSB_MEM_ALIGN`.
One potential pitfall is that the buffer may be longer than the maximum endpoint size of one USB One potential pitfall is that the buffer may be longer than the maximum endpoint size of one USB
packet. Some peripherals can handle transmitting multiple USB packets for a provided buffer (like the SAMD21). packet. Some peripherals can handle transmitting multiple USB packets for a provided buffer (like the SAMD21).
Others (like the nRF52) may need each USB packet queued individually. To make this work you'll need to track Others (like the nRF52) may need each USB packet queued individually. To make this work you'll need to track