Anonymous
Not applicable
Sep 13, 2013
11:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 13, 2013
11:26 AM
I am compiling some examples off the web and ran into an issue with the CyU3PDmaBufferFee prototype below found in cyu3os.h. The example code has the return code returning no argument so it's expecting a void. This code has the return type defined as an extern int but in the comments it says it returns nothing. What should it be? extern int CyU3PDmaBufferFree ( void *buffer /**< Address of buffer to be freed. */ ); /** \brief Fill a region of memory with a specified value. **Description**\n This function is a memset equivalent and is used by the firmware library code. It can also be used by the application firmware. **Return value**\n * None */
1 Reply
Anonymous
Not applicable
Sep 15, 2013
03:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 15, 2013
03:08 AM
Hi Ken, One change is required to the project starting with SDK 1.2.3: The return type for the CyU3PDmaBufferFree function needs to be changed to int. This change is noted in the Porting section of the Getting Started guide. Thanks, Sai Krishna