I want to create a task and pass a parameter to it. So I used function "os_tsk_create_ex" and define the task function as: void task3 (int *argv) __task 12 __priority 1{...}
When compiling this file, an error occurred: error: __interrupt/__using/__task function cannot receive/return value(s)
What's the reason of it? Thanks.
The reason is exactly as stated in the message:
error: __interrupt/__using/__task function cannot receive/return value(s)
"cannot" here could also be read as "must not" or "is not permitted to", etc...
Check the description of the __task keyword in the Manual:
http://www.keil.com/support/man/docs/tr166/tr166_taskdef.htm
But what i use is ARTX166, not RTX Tiny.