This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TM4C123GH6PM:USBOTG 或 USBHCD?

Guru**** 2468460 points
Other Parts Discussed in Thread: TM4C123GH6PM

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/671215/tm4c123gh6pm-usbotg-or-usbhcd

器件型号:TM4C123GH6PM
主题中讨论的其他器件: DK-TM4C123G
 
我想使用 TM4C123GH6PM 制作 USB 主机键盘项目。  但我在 Resource Explorer 中没有找到这样的示例。  在这样一个项目中使用 USB0HostIntHandler (在 USBHCDMain ()时使用)还是在 USB0OTGIntHandler (在 USBOTGMain (GetTickms ()时使用)更好?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我会使用主机模式、因为它比 OTG 更简单。 您是否看过 TivaWare 示例:
    C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c123g\USB_host_keyboard
    您可能需要忽略此示例的所有显示部分、但 USB 键盘部分可能会有所帮助。