Altera_Forum
Honored Contributor
20 years agoOSQAccept: too few arguments ?
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.