- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page