IDE

Hello there
I wonder, where i can find the declarations for the used constants etc.. e.g. like this code snippet:

--
pinMode(LEDPIN, OUTPUT);
// initialize Timer1
cli(); // disable global interrupts
TCCR1A = 0; // set entire TCCR1A register to 0
TCCR1B = 0; // same for TCCR1B

where can i see the declarations for TCCR1A, TCCR1B. C-Language uses header-files and/or includes for this. How is this solved in the arduino IDE.

Thanks.... Kurt

Those are not declarations.
They are registers in the microcontroller and taken care of by the avr-gcc compiler.

Read the datasheet of the ATmega328p, you will see.

The names of the registers are declared in header files under where you installed the IDE.
The processor type, passed to the compiler via command line options, determines which files get included.

Look in hardware/tools/avr/lib/avr/include/avr/ under your Arduino installation folder. You will find dozens of .h files starting with 'io'. E.g. iom2560.h

Look in io.h to find the define for your chip which tells you the io????.h file for your board.

I'm using Arduino-1.0.5. It may be a little different for other versions.

Thank you very much, this helps me really. Kurt