device_specific.h

Go to the documentation of this file.
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/
00025 #ifndef __DEVICE_SPECIFIC_H__
00026 #define __DEVICE_SPECIFIC_H__
00027 
00035 #if defined(__ATmega163__) | defined(__ATmega323__)
00036 #define ASYNC_TIMER                        AS2
00037 #define NO_PRESCALING                      CS20
00038 #define ASYNC_TIMER_CONTROL_REGISTER       TCCR2
00039 #define ASYNC_TIMER_CONTROL_UPDATE_BUSY    TCR2UB
00040 #define OUTPUT_COMPARE_UPDATE_BUSY         OCR2UB
00041 #define TIMER_UPDATE_BUSY                  TCN2UB
00042 #define TIMER                              TCNT2
00043 #define OSCCAL_RESOLUTION                  8
00044 #define LOOP_CYCLES                        6
00045 #endif
00046 
00047 #if defined(__ATmega64__) | defined(__ATmega128__)
00048 #define ASYNC_TIMER                        AS0
00049 #define NO_PRESCALING                      CS00
00050 #define ASYNC_TIMER_CONTROL_REGISTER       TCCR0
00051 #define ASYNC_TIMER_CONTROL_UPDATE_BUSY    TCR0UB
00052 #define OUTPUT_COMPARE_UPDATE_BUSY         OCR0UB
00053 #define TIMER_UPDATE_BUSY                  TCN0UB
00054 #define TIMER                              TCNT0
00055 #define OSCCAL_RESOLUTION                  8
00056 #define LOOP_CYCLES                        6
00057 #endif
00058 
00059 #if defined(__ATmega8__) | defined(__ATmega16__) | \
00060     defined(__ATmega32__) | defined(__ATmega8535__)
00061 #define ASYNC_TIMER                        AS2
00062 #define NO_PRESCALING                      CS20
00063 #define ASYNC_TIMER_CONTROL_REGISTER       TCCR2
00064 #define ASYNC_TIMER_CONTROL_UPDATE_BUSY    TCR2UB
00065 #define OUTPUT_COMPARE_UPDATE_BUSY         OCR2UB
00066 #define TIMER_UPDATE_BUSY                  TCN2UB
00067 #define TIMER                              TCNT2
00068 #define OSCCAL_RESOLUTION                  8
00069 #define LOOP_CYCLES                        6
00070 #endif
00071 
00072 #if defined(__ATmega162__)
00073 #define ASYNC_TIMER                        AS2
00074 #define NO_PRESCALING                      CS20
00075 #define ASYNC_TIMER_CONTROL_REGISTER       TCCR2
00076 #define ASYNC_TIMER_CONTROL_UPDATE_BUSY    TCR2UB
00077 #define OUTPUT_COMPARE_UPDATE_BUSY         OCR2UB
00078 #define TIMER_UPDATE_BUSY                  TCN2UB
00079 #define TIMER                              TCNT2
00080 #define OSCCAL_RESOLUTION                  7
00081 #define LOOP_CYCLES                        6
00082 #endif
00083 
00084 #if defined(__ATmega169__) | defined(__ATmega165__)
00085 #define ASYNC_TIMER                        AS2
00086 #define NO_PRESCALING                      CS20
00087 #define ASYNC_TIMER_CONTROL_REGISTER       TCCR2A
00088 #define ASYNC_TIMER_CONTROL_UPDATE_BUSY    TCR2UB
00089 #define OUTPUT_COMPARE_UPDATE_BUSY         OCR2UB
00090 #define TIMER_UPDATE_BUSY                  TCN2UB
00091 #define TIMER                              TCNT2
00092 #define OSCCAL_RESOLUTION                  7
00093 #define LOOP_CYCLES                        7
00094 // Uncomment the following line for ATmega169P
00095 //#define TWO_RANGES
00096 #endif
00097 
00098 #if defined(__ATmega48__) | defined(__ATmega88__) | defined(__ATmega168__)
00099 #define ASYNC_TIMER                        AS2
00100 #define NO_PRESCALING                      CS20
00101 #define ASYNC_TIMER_CONTROL_REGISTER       TCCR2B
00102 #define ASYNC_TIMER_CONTROL_UPDATE_BUSY    TCR2AUB
00103 #define OUTPUT_COMPARE_UPDATE_BUSY         OCR2AUB
00104 #define TIMER_UPDATE_BUSY                  TCN2UB
00105 #define TIMER                              TCNT2
00106 #define OSCCAL_RESOLUTION                  7
00107 #define LOOP_CYCLES                        7
00108 #define TWO_RANGES
00109 #endif
00110 
00111 #if defined(__ATmega325__) | defined(__ATmega645__) | \
00112     defined(__ATmega3250__) | defined(__ATmega6450__) | \
00113     defined(__ATmega329__) | defined(__ATmega649__) | \
00114     defined(__ATmega3290__) | defined(__ATmega6490__)
00115 #define ASYNC_TIMER                        AS2
00116 #define NO_PRESCALING                      CS20
00117 #define ASYNC_TIMER_CONTROL_REGISTER       TCCR2A
00118 #define ASYNC_TIMER_CONTROL_UPDATE_BUSY    TCR2UB
00119 #define OUTPUT_COMPARE_UPDATE_BUSY         OCR2UB
00120 #define TIMER_UPDATE_BUSY                  TCN2UB
00121 #define TIMER                              TCNT2
00122 #define OSCCAL_RESOLUTION                  7
00123 #define LOOP_CYCLES                        7
00124 #define TWO_RANGES
00125 #endif
00126 
00127 #if defined(__ATmeg1281__) | defined(__ATmega1281) | defined(__ATmega1280) | \
00128     defined(__ATmega2560__) | defined(__ATmega2561__) | defined(__ATmega640)
00129 #define ASYNC_TIMER                        AS2
00130 #define NO_PRESCALING                      CS20
00131 #define ASYNC_TIMER_CONTROL_REGISTER       TCCR2B
00132 #define ASYNC_TIMER_CONTROL_UPDATE_BUSY    TCR2AUB
00133 #define OUTPUT_COMPARE_UPDATE_BUSY         OCR2AUB
00134 #define TIMER_UPDATE_BUSY                  TCN2UB
00135 #define TIMER                              TCNT2
00136 #define OSCCAL_RESOLUTION                  7
00137 #define LOOP_CYCLES                        7
00138 #define TWO_RANGES
00139 #endif
00140 
00141 #if defined(__AT90CAN128__)
00142 #define ASYNC_TIMER                        AS2
00143 #define NO_PRESCALING                      CS20
00144 #define ASYNC_TIMER_CONTROL_REGISTER       TCCR2A
00145 #define ASYNC_TIMER_CONTROL_UPDATE_BUSY    TCR2UB
00146 #define OUTPUT_COMPARE_UPDATE_BUSY         OCR2UB
00147 #define TIMER_UPDATE_BUSY                  TCN2UB
00148 #define TIMER                              TCNT2
00149 #define OSCCAL_RESOLUTION                  7
00150 #define LOOP_CYCLES                        7
00151 #endif
00152 
00153 #endif
00154 

Generated on Fri Feb 17 13:50:24 2006 for AVR055 - Using a 32 kHz crystal to calibrate the internal RC oscillatore by  doxygen 1.4.5