Rev 1472 | Rev 1479 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1472 | Rev 1474 | ||
|---|---|---|---|
| Line 9... | Line 9... | ||
| 9 | 9 | ||
| 10 | /*----------------------------------------------------------------------------- |
10 | /*----------------------------------------------------------------------------- |
| 11 | * Includes |
11 | * Includes |
| 12 | *---------------------------------------------------------------------------*/ |
12 | *---------------------------------------------------------------------------*/ |
| 13 | #include <config.h> |
13 | #include <config.h> |
| - | 14 | #include <drivers/mcu/pcint.h> |
|
| 14 | #include <drivers/ir/transceiver/irtransceiverMulti.h> |
15 | #include <drivers/ir/transceiver/irtransceiverMulti.h> |
| 15 | #include <drivers/ir/protocols.h> |
16 | #include <drivers/ir/protocols.h> |
| 16 | #include <avr/io.h> |
17 | #include <avr/io.h> |
| 17 | #include <avr/interrupt.h> |
18 | #include <avr/interrupt.h> |
| 18 | #include <drivers/mcu/pcint.h> |
- | |
| 19 | 19 | ||
| 20 | /*----------------------------------------------------------------------------- |
20 | /*----------------------------------------------------------------------------- |
| 21 | * Globals |
21 | * Globals |
| 22 | *---------------------------------------------------------------------------*/ |
22 | *---------------------------------------------------------------------------*/ |
| 23 | #if IR_RX_ENABLE==1 |
23 | #if IR_RX_ENABLE==1 |
| Line 280... | Line 280... | ||
| 280 | #if IR_RX_ENABLE==1 |
280 | #if IR_RX_ENABLE==1 |
| 281 | void IrTransceiver_Init_TX_Channel(uint8_t channel, uint16_t *buffer, irCallback_t callback, uint8_t pcint_id, volatile uint8_t* port, volatile uint8_t* pin, volatile uint8_t* ddr,uint8_t nr, uint8_t pcint) |
281 | void IrTransceiver_Init_TX_Channel(uint8_t channel, uint16_t *buffer, irCallback_t callback, uint8_t pcint_id, volatile uint8_t* port, volatile uint8_t* pin, volatile uint8_t* ddr,uint8_t nr, uint8_t pcint) |
| 282 | { |
282 | { |
| 283 | if (channel == 0) |
283 | if (channel == 0) |
| 284 | { |
284 | { |
| 285 |
|
285 | Pcint_SetCallback(pcint_id, pcint, &IrTransceiver_Store_ch0); |
| 286 | } |
286 | } |
| 287 | else if (channel == 1) |
287 | else if (channel == 1) |
| 288 | { |
288 | { |
| 289 |
|
289 | Pcint_SetCallback(pcint_id, pcint, &IrTransceiver_Store_ch1); |
| 290 | } |
290 | } |
| 291 | else if (channel == 2) |
291 | else if (channel == 2) |
| 292 | { |
292 | { |
| 293 |
|
293 | Pcint_SetCallback(pcint_id, pcint, &IrTransceiver_Store_ch2); |
| 294 | } |
294 | } |
| 295 | 295 | ||
| 296 | if (channel < 3) |
296 | if (channel < 3) |
| 297 | { |
297 | { |
| 298 | /* Set port direction to input */ |
298 | /* Set port direction to input */ |