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
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.