Subversion Repositories HomeAutomation

Rev

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

Rev 1467 Rev 1468
Line 297... Line 297...
297
#endif
297
#endif
298
   
298
   
299
#if IR_TX_ENABLE==1
299
#if IR_TX_ENABLE==1
300
    /* Set up transmitter */
300
    /* Set up transmitter */
301
    IR_T_DDR |= (1<<IR_T_BIT);
301
    IR_T_DDR |= (1<<IR_T_BIT);
302
    #if defined(__AVR_ATmega88__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)
302
    #if defined(__AVR_ATmega88__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega168P__) || defined(__AVR_ATmega328P__)
303
    TCCR0A = (0<<COM0A1)|(0<<COM0A0)|(1<<WGM01)|(0<<WGM00);
303
    TCCR0A = (0<<COM0A1)|(0<<COM0A0)|(1<<WGM01)|(0<<WGM00);
304
    TCCR0B = (0<<WGM02)|(1<<CS00)|(0<<CS01)|(0<<CS02);
304
    TCCR0B = (0<<WGM02)|(1<<CS00)|(0<<CS01)|(0<<CS02);
305
    #endif
305
    #endif
306
   
306
   
307
#if IR_TX_ACTIVE_LOW==1
307
#if IR_TX_ACTIVE_LOW==1