Subversion Repositories HomeAutomation

Rev

Rev 415 | Rev 1415 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 415 Rev 492
Line 106... Line 106...
106
    #elif TIMEBASE_PRESCALE == 256
106
    #elif TIMEBASE_PRESCALE == 256
107
    TCCR0B = (1<<CS02);             // prescaler: 256
107
    TCCR0B = (1<<CS02);             // prescaler: 256
108
    #endif
108
    #endif
109
    OCR0A = TIMEBASE_HITS_PER_1MS; // set timer period
109
    OCR0A = TIMEBASE_HITS_PER_1MS; // set timer period
110
    TIFR0  |= (1<<OCF0A);  // clear ouput compare match flag
110
    TIFR0  |= (1<<OCF0A);  // clear ouput compare match flag
111
    TIMSK0 |= (1<<OCIE0); // enable output compare match interrupt
111
    TIMSK0 |= (1<<OCIE0A); // enable output compare match interrupt
112
    #endif
112
    #endif
113
#endif
113
#endif
114
 
114
 
115
 
115
 
116
#else //!defined(TIMEBASE_NEW_IMPLEMENTATION)
116
#else //!defined(TIMEBASE_NEW_IMPLEMENTATION)