- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I need to send the status of 2 GPIO pins over an interrupt endpoint.
I am starting with this code:
https://www.cypress.com/documentation/code-examples/ez-usb-fx3-usb-debug-example
As far as I understood, this example sends data using CyU3PDebugPrint with some DMA memory configured. But I don't want to use CyU3PDebugPrint.
I want to write the status of the GPIO pin in such a way that the interrupt endpoint will collect that data and send to the host when requested.
How Can I send an array of bytes to the host using this interrupt endpoint?
Thanks
Lucas
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Lucas,
Instead of using the USBDebug example, you will need to use a combined firmware with USBDebug and GPIOApp example firmware.
GPIOApp firmware incorporates the use of GPIO's as INPUT or OUTPUT and prints over UART and so, you can integrate it or modify it similar to the USBDebug example.
Path for USBDebug example: C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\basic_examples\cyfxusbdebug
Path for GPIOApp example: C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxgpioapp
Regards,
Yashwant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Lucas,
Instead of using the USBDebug example, you will need to use a combined firmware with USBDebug and GPIOApp example firmware.
GPIOApp firmware incorporates the use of GPIO's as INPUT or OUTPUT and prints over UART and so, you can integrate it or modify it similar to the USBDebug example.
Path for USBDebug example: C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\basic_examples\cyfxusbdebug
Path for GPIOApp example: C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxgpioapp
Regards,
Yashwant