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.
It looks like you are using an older version of C166 compiler which does not yet support this.
What is your C166 version number?
Here is a related link: http://www.keil.com/forum/docs/thread7270.asp
What I use is uVision V3.21 and C166 compiler V6.02
View all questions in Keil forum