硬汉嵌入式论坛

 找回密码
 立即注册
查看: 3129|回复: 0
收起左侧

[USB] STM32H7 USB的4KB专用FIFO的分配问题

[复制链接]

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107101
QQ
发表于 2021-1-23 09:38:13 | 显示全部楼层 |阅读模式


RL-USB里面有一个:

  1. #ifndef USBD_FS_MAX_ENDPOINT_NUM
  2. #define USBD_FS_MAX_ENDPOINT_NUM   (8U)
  3. #endif
  4. #if    (USBD_FS_MAX_ENDPOINT_NUM > 8U)
  5. #error  Too many Endpoints, maximum IN/OUT Endpoint pairs that this driver supports is 8 !!!
  6. #endif

  7. // FIFO sizes in bytes (total available memory for FIFOs is 4 kB)
  8. #ifndef OTG_FS_RX_FIFO_SIZE
  9. #define OTG_FS_RX_FIFO_SIZE        (1024U)
  10. #endif
  11. #ifndef OTG_FS_TX0_FIFO_SIZE
  12. #define OTG_FS_TX0_FIFO_SIZE       (64U)
  13. #endif
  14. #ifndef OTG_FS_TX1_FIFO_SIZE
  15. #define OTG_FS_TX1_FIFO_SIZE       (1024U)
  16. #endif
  17. #ifndef OTG_FS_TX2_FIFO_SIZE
  18. #define OTG_FS_TX2_FIFO_SIZE       (512U)
  19. #endif
  20. #ifndef OTG_FS_TX3_FIFO_SIZE
  21. #define OTG_FS_TX3_FIFO_SIZE       (256U)
  22. #endif
  23. #ifndef OTG_FS_TX4_FIFO_SIZE
  24. #define OTG_FS_TX4_FIFO_SIZE       (256U)
  25. #endif
  26. #ifndef OTG_FS_TX5_FIFO_SIZE
  27. #define OTG_FS_TX5_FIFO_SIZE       (256U)
  28. #endif
  29. #ifndef OTG_FS_TX6_FIFO_SIZE
  30. #define OTG_FS_TX6_FIFO_SIZE       (256U)
  31. #endif
  32. #ifndef OTG_FS_TX7_FIFO_SIZE
  33. #define OTG_FS_TX7_FIFO_SIZE       (256U)
  34. #endif
  35. #ifndef OTG_FS_TX8_FIFO_SIZE
  36. #define OTG_FS_TX8_FIFO_SIZE       (192U)
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-18 07:35 , Processed in 0.235333 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表