I just found out a port of FreeRTOS for the mcu I use: http://gonium.net/md/2008/08/10/... , http://gonium.net/media/freertos... ;
It compiles well and it works but... I want to use C++ code. I tried changing the CC variable to avr-g++ but it doesn't compile, first complaining about a cast, if I fix that, it complains about another cast in tasks.c ...
So I tried to go another way. I declared a variable CSRC where I enumerate the c files, CPPSRC, CC for c compiler, CPPC but it gives a linker error.
Can someone please point me in the right direction?