This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

It is possible to define a Task in RTX like an "extern"?

I had tried to define a task like an extern so I could split my task in several files, but it doesnt works I dont know if I can define a task like external.

for exemple:

extern __task void tick_timer (void);

gives me error.

when I try this with others normal functions it works...so its not a problem of files or a thing like that

Thanks

Gabriel

Parents
  • When having multiple tasks in different files, I just have a line:

    void my_task(void) __task;
    

    So of course you have have your tasks in different files. But from your text, you want to split a single task and have the code in several files. No function can have the code split into multiple files. The way to reduce the amount of code in a function is to subdivide the code and move to new functions.

Reply
  • When having multiple tasks in different files, I just have a line:

    void my_task(void) __task;
    

    So of course you have have your tasks in different files. But from your text, you want to split a single task and have the code in several files. No function can have the code split into multiple files. The way to reduce the amount of code in a function is to subdivide the code and move to new functions.

Children
No data