Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12606 Discussions

OSQAccept: too few arguments ?

Altera_Forum
Honored Contributor II
1,061 Views

Hi everybody ! 

 

I have a problem with the function OSQAccept(). 

Its goal is to read a queue of messages without waiting . 

 

The problem is that at the compilation phase, the program says that there is too few arguments: 

error: too few arguments to function `OSQAccept' error: incompatible types in assignment 

 

The corresponding code line is: 

get_queue_mess = OSQAccept((OS_EVENT*) pdata); 

 

The problem is that in the uC/OS-II manual, more exactly in the section 6.07.05, the prototype of this function takes only one argument: 

void *OSQAccept (OS_EVENT *pevent) 

 

So does anybody know what's wrong ? 

 

Thank you.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
387 Views

Sorry, 

 

I've found where was located the problem ;-) 

 

The prototype of the function OSQAccept has been changed in my version: 

void  *OSQAccept (OS_EVENT *pevent, INT8U *err)
0 Kudos
Reply