I am currently migrating a kind of complex xmega64a3u project from AmtelStudio to Linux. I am a professional C++ developer usually working in a Linux environment trying to help a friend with basic rules of professional software development (Revision Control, automated tests, bla bla bla). So I do know C/C++ but I know little about microcontrollers.
I managed to install the avr8-gnu-toolchain-126.96.36.1999-linux.any.x86_64.tar.gz and my IDE (Code::Blocks, will do cmake|vim later ;) ) is compiling up to a couple of lines like these:
TCD0.CTRLB = TC_TC0_WGMODE_SINGLESLOPE_gc|TC0_<...>;
The compiler complains about
error: 'TC_TC0_WGMODE_SINGLESLOPE_gc' undeclared (first use in this function)
From reading the Atmel-8465-8-and-16-bit-AVR-Microcontrollers-XMEGA-C_Manual.pdf I do understand every single part of this word. But I don't find any enum|define or anything with the TC_TC0_ prefix in the whole toolchain's includes nor in the project itself (using grep). I see a lot of TC_WGMODE_SINGLESLOPE_gc though. There are a couple of other TC_TC0_ prefixed defines in other errors as well.
Now my Question:
What am I missing? Where do I find *good* documentation about this?
Thx in advance