Rev 1922 | Rev 1927 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1922 | Rev 1923 | ||
|---|---|---|---|
| Line 64... | Line 64... | ||
| 64 | gpio_set_pin(sns_rfTransceive_TX_PIN); |
64 | gpio_set_pin(sns_rfTransceive_TX_PIN); |
| 65 | #else |
65 | #else |
| 66 | gpio_clr_pin(sns_rfTransceive_TX_PIN); |
66 | gpio_clr_pin(sns_rfTransceive_TX_PIN); |
| 67 | #endif |
67 | #endif |
| 68 | 68 | ||
| - | 69 | #if IR_RX_ENABLE==1 |
|
| 69 | IrTransceiver_InitRxChannel(0, rfRxChannel_rxbuf, sns_rfTransceive_RX_done_callback, sns_rfTransceive_RX_PCINT, sns_rfTransceive_RX_PIN); |
70 | IrTransceiver_InitRxChannel(0, rfRxChannel_rxbuf, sns_rfTransceive_RX_done_callback, sns_rfTransceive_RX_PCINT, sns_rfTransceive_RX_PIN); |
| 70 | rfRxChannel_state = sns_rfTransceive_STATE_RECEIVING; |
71 | rfRxChannel_state = sns_rfTransceive_STATE_RECEIVING; |
| - | 72 | #endif |
|
| 71 | 73 | ||
| - | 74 | #if IR_TX_ENABLE==1 |
|
| 72 | IrTransceiver_InitTxChannel(0, sns_rfTransceive_TX_done_callback, sns_rfTransceive_TX_PIN); |
75 | IrTransceiver_InitTxChannel(0, sns_rfTransceive_TX_done_callback, sns_rfTransceive_TX_PIN); |
| 73 | rfTxChannel_state = sns_rfTransceive_STATE_IDLE; |
76 | rfTxChannel_state = sns_rfTransceive_STATE_IDLE; |
| - | 77 | #endif |
|
| 74 | } |
78 | } |
| 75 | 79 | ||
| 76 | void sns_rfTransceive_Process(void) |
80 | void sns_rfTransceive_Process(void) |
| 77 | { |
81 | { |
| 78 | #if IR_RX_ENABLE==1 |
82 | #if IR_RX_ENABLE==1 |