diff options
| author | sakumisu <[email protected]> | 2025-05-28 22:32:54 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-05-28 22:32:54 +0800 |
| commit | 5a6023118edfae804ab2c2e7cc4b58b8cb639ddb (patch) | |
| tree | 81120a77db3595d327b390cae5accee5177efa7d | |
| parent | 51ad3717c56054ee012705bde040892e32d75e9d (diff) | |
fix(port/chipidea): fix qtd buffer setting
Signed-off-by: sakumisu <[email protected]>
| -rw-r--r-- | port/chipidea/usb_dc_chipidea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/port/chipidea/usb_dc_chipidea.c b/port/chipidea/usb_dc_chipidea.c index 4a4f52f0..74bd1257 100644 --- a/port/chipidea/usb_dc_chipidea.c +++ b/port/chipidea/usb_dc_chipidea.c @@ -304,7 +304,7 @@ static void usb_qtd_init(dcd_qtd_t *p_qtd, void *data_ptr, uint16_t total_bytes) if (data_ptr != NULL) { p_qtd->buffer[0] = (uint32_t)data_ptr; for (uint8_t i = 1; i < 5; i++) { - p_qtd->buffer[i] |= ((p_qtd->buffer[i - 1]) & 0xFFFFF000UL) + 4096U; + p_qtd->buffer[i] = ((p_qtd->buffer[i - 1]) & 0xFFFFF000UL) + 4096U; } } } |
