Rev 1487 | Rev 1494 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1487 | Rev 1488 | ||
|---|---|---|---|
| Line 140... | Line 140... | ||
| 140 | } |
140 | } |
| 141 | else |
141 | else |
| 142 | { |
142 | { |
| 143 | //TODO only mask if noone is sending (checked below) |
143 | //TODO only mask if noone is sending (checked below) |
| 144 | IR_MASK_COMPARE(); |
144 | IR_MASK_COMPARE(); |
| - | 145 | ||
| - | 146 | drvIrTxChannel[channel].timeoutEnable = FALSE; |
|
| 145 | 147 | ||
| 146 | /* Notify the application that a pulse train has been sent. */ |
148 | /* Notify the application that a pulse train has been sent. */ |
| 147 | drvIrTxChannel[channel].callback(channel); |
149 | drvIrTxChannel[channel].callback(channel); |
| 148 | } |
150 | } |
| 149 | 151 | ||
| Line 405... | Line 407... | ||
| 405 | void IrTransceiver_InitTxChannel(uint8_t channel, irTxCallback_t callback, volatile uint8_t *port, volatile uint8_t *pin, volatile uint8_t *ddr,uint8_t nr, uint8_t pcint) |
407 | void IrTransceiver_InitTxChannel(uint8_t channel, irTxCallback_t callback, volatile uint8_t *port, volatile uint8_t *pin, volatile uint8_t *ddr,uint8_t nr, uint8_t pcint) |
| 406 | { |
408 | { |
| 407 | if (channel < 3) |
409 | if (channel < 3) |
| 408 | { |
410 | { |
| 409 | drvIrTxChannel[channel].port=port; |
411 | drvIrTxChannel[channel].port=port; |
| 410 | drvIrTxChannel[channel].pinmask=(1<< |
412 | drvIrTxChannel[channel].pinmask=(1<<nr); |
| 411 | 413 | ||
| 412 | /* set up port as output */ |
414 | /* set up port as output */ |
| 413 | *ddr |= (1<< |
415 | *ddr |= (1<<nr); |
| 414 | 416 | ||
| 415 | IR_OUTP_LOW(); |
417 | IR_OUTP_LOW(); |
| 416 | 418 | ||
| 417 | drvIrTxChannel[channel].callback = callback; |
419 | drvIrTxChannel[channel].callback = callback; |
| 418 | drvIrTxChannel[channel].enable = TRUE; |
420 | drvIrTxChannel[channel].enable = TRUE; |