You are here

cyu30s.h file issue in version 1.2 | Cypress Semiconductor

cyu30s.h file issue in version 1.2

Summary: 1 Reply, Latest post by RSKV on 15 Sep 2013 03:08 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
Ken4242's picture
54 posts

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 /** );

/** \brief Fill a region of memory with a specified value.

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

rskv's picture
Cypress Employee
1134 posts

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.

Sai Krishna

Log in to post new comments.