Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fx3_firmware: Clear DMA buffers when disabling an RX or TX module
Stale RX and TX samples have been reported (issue #255). This occurs because the CyU3PResetEp() call does not reset DMA channels and their underlying DMA buffers, nor does it clear the DMA buffers associated with an endpoint. Use of the existing ClearDMAChannel() as is would have required some ridiculous shoehorning, so some cleanup was done: - Endpoint halt & ACK operations have been removed from ClearDMAChannel(). These operations are outside of the scope of clearing DMA buffers, and have been moved to their respective locations in handling set/clear halt endpoint requests. - reset_endpoint() has been added to the NuandApplication function table. Internally, this operation is now used in performing the halt_endpoint() operation. - Misc return value checks added. Granted, these don't help much as there's no accessible debug log.
- Loading branch information
Showing
4 changed files
with
105 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters