NOTICE: The Processors Wiki will End-of-Life in December of 2020. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

C2000 USB and SYS/BIOS

From Texas Instruments Wiki
Jump to: navigation, search

C2000 USB and SYS/BIOS

The C2000 USB stack and SYS/BIOS can easily co-exist in a given application. Below you'll find some guidelines for integrating the two in your application.

  • Ensure your project is a SYS/BIOS project or if not create a new SYS/BIOS project
  • Open the cfg file to configure the project
  • Navigate to the HWI section and register the USB interrupt handler(USB0DeviceIntHandler or USB0HostIntHandler) as a HWI at the proper vector number (which is available in the documentation)
  • If you are implementing a USB Host application you'll also need to register the host state machine function (USBHCDMain) as a periodic task. An interval of a millisecond or two ought to work great.
  • Call the USB initialization function in your startup code just as it is in the examples.

Thats it! Piece o' Cake.