Rev 1865 | Rev 1875 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1865 | Rev 1871 | ||
|---|---|---|---|
| Line 586... | Line 586... | ||
| 586 | eeprom_write_byte_crc(EEDATA.ch2_txpower, 0, WITHOUT_CRC); |
586 | eeprom_write_byte_crc(EEDATA.ch2_txpower, 0, WITHOUT_CRC); |
| 587 | eeprom_write_word_crc(EEDATA16.ch2_modfreq, sns_irTransceive_BaseFrq/38000UL, WITHOUT_CRC); |
587 | eeprom_write_word_crc(EEDATA16.ch2_modfreq, sns_irTransceive_BaseFrq/38000UL, WITHOUT_CRC); |
| 588 | EEDATA_UPDATE_CRC; |
588 | EEDATA_UPDATE_CRC; |
| 589 | } |
589 | } |
| 590 | #endif |
590 | #endif |
| - | 591 | ||
| - | 592 | //gpio_clr_pin(EXP_K); |
|
| - | 593 | //gpio_set_out(EXP_K); |
|
| - | 594 | //gpio_clr_pin(EXP_J); |
|
| - | 595 | //gpio_set_out(EXP_J); |
|
| 591 | } |
596 | } |
| 592 | 597 | ||
| 593 | void sns_irTransceive_Process(void) |
598 | void sns_irTransceive_Process(void) |
| 594 | { |
599 | { |
| 595 | for (uint8_t channel=0; channel < IR_SUPPORTED_NUM_CHANNELS; channel++) |
600 | for (uint8_t channel=0; channel < IR_SUPPORTED_NUM_CHANNELS; channel++) |
| Line 646... | Line 651... | ||
| 646 | StdCan_Put(&irTxMsg); |
651 | StdCan_Put(&irTxMsg); |
| 647 | } |
652 | } |
| 648 | else if (irRxChannel[channel].proto.protocol == IR_PROTO_UNKNOWN) |
653 | else if (irRxChannel[channel].proto.protocol == IR_PROTO_UNKNOWN) |
| 649 | { |
654 | { |
| 650 | #if (sns_irTransceive_SEND_DEBUG==1) |
655 | #if (sns_irTransceive_SEND_DEBUG==1) |
| - | 656 | //gpio_toggle_pin(EXP_J); |
|
| 651 | send_debug(irRxChannel[channel].rxbuf, irRxChannel[channel].rxlen); |
657 | send_debug(irRxChannel[channel].rxbuf, irRxChannel[channel].rxlen); |
| 652 | irRxChannel[channel].proto.timeout=300; |
658 | irRxChannel[channel].proto.timeout=300; |
| 653 | #elif sns_irTransceive_PRONTO_SUPPORT==1 |
659 | #elif sns_irTransceive_PRONTO_SUPPORT==1 |
| 654 | pronto_sendData(irRxChannel[channel].rxbuf, irRxChannel[channel].rxlen, channel, irRxChannel[channel].proto.modfreq); |
660 | pronto_sendData(irRxChannel[channel].rxbuf, irRxChannel[channel].rxlen, channel, irRxChannel[channel].proto.modfreq); |
| 655 | irRxChannel[channel].proto.timeout=1; |
661 | irRxChannel[channel].proto.timeout=1; |