Subversion Repositories HomeAutomation

Rev

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

Rev 1871 Rev 1875
Line 16... Line 16...
16
#include <drivers/ir/protocols.h>
16
#include <drivers/ir/protocols.h>
17
#include <avr/io.h>
17
#include <avr/io.h>
18
#include <avr/interrupt.h>
18
#include <avr/interrupt.h>
19
 
19
 
20
 
20
 
21
#include <drivers/mcu/gpio.h>
21
//#include <drivers/mcu/gpio.h>
22
 
22
 
23
/*-----------------------------------------------------------------------------
23
/*-----------------------------------------------------------------------------
24
 * Prerequisites
24
 * Prerequisites
25
 *---------------------------------------------------------------------------*/
25
 *---------------------------------------------------------------------------*/
26
#if defined(__AVR_ATmega8__) || defined(__AVR_ATmega16__) || defined(__AVR_ATmega32__)
26
#if defined(__AVR_ATmega8__) || defined(__AVR_ATmega16__) || defined(__AVR_ATmega32__)
Line 235... Line 235...
235
    {
235
    {
236
        IR_UNMASK_TIMEOUT();
236
        IR_UNMASK_TIMEOUT();
237
    }
237
    }
238
#endif
238
#endif
239
//gpio_toggle_pin(EXP_K);
239
//gpio_toggle_pin(EXP_K);
-
 
240
 
240
 
241
 
241
    if (drvIrRxChannel[channel].storeEnable)
242
    if (drvIrRxChannel[channel].storeEnable)
242
    {
243
    {
243
        /* Store the measurement. */
244
        /* Store the measurement. */
244
        drvIrRxChannel[channel].rxbuf[drvIrRxChannel[channel].rxlen++] = pulsewidth;
245
        drvIrRxChannel[channel].rxbuf[drvIrRxChannel[channel].rxlen++] = pulsewidth;