Rev 1858 | Rev 1864 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1858 | Rev 1861 | ||
|---|---|---|---|
| Line 105... | Line 105... | ||
| 105 | #endif |
105 | #endif |
| 106 | 106 | ||
| 107 | /* |
107 | /* |
| 108 | * PRONTO HEX Routines |
108 | * PRONTO HEX Routines |
| 109 | */ |
109 | */ |
| 110 | #if sns_irTransceive_PRONTO_SUPPORT==1 |
- | |
| 111 | volatile uint32_t sns_irTransceive_LastPronto=0; |
- | |
| 112 | static uint8_t activeChannel = 0; |
- | |
| 113 | #define sns_irTransceive_MAXTIMING (16*1000) |
- | |
| 114 | - | ||
| 115 | static void pronto_sendResponse(uint8_t channel, uint8_t responseValue) |
110 | static void pronto_sendResponse(uint8_t channel, uint8_t responseValue) |
| 116 | { |
111 | { |
| 117 | StdCan_Msg_t msg; |
112 | StdCan_Msg_t msg; |
| 118 | StdCan_Set_class(msg.Header, CAN_MODULE_CLASS_SNS); |
113 | StdCan_Set_class(msg.Header, CAN_MODULE_CLASS_SNS); |
| 119 | StdCan_Set_direction(msg.Header, DIRECTIONFLAG_FROM_OWNER); |
114 | StdCan_Set_direction(msg.Header, DIRECTIONFLAG_FROM_OWNER); |
| Line 126... | Line 121... | ||
| 126 | msg.Data[1] = 0xF0; |
121 | msg.Data[1] = 0xF0; |
| 127 | msg.Data[2] = (uint8_t)responseValue; |
122 | msg.Data[2] = (uint8_t)responseValue; |
| 128 | while (StdCan_Put(&msg) != StdCan_Ret_OK) {} |
123 | while (StdCan_Put(&msg) != StdCan_Ret_OK) {} |
| 129 | _delay_ms(1); |
124 | _delay_ms(1); |
| 130 | } |
125 | } |
| - | 126 | ||
| - | 127 | #if sns_irTransceive_PRONTO_SUPPORT==1 |
|
| - | 128 | volatile uint32_t sns_irTransceive_LastPronto=0; |
|
| - | 129 | static uint8_t activeChannel = 0; |
|
| - | 130 | #define sns_irTransceive_MAXTIMING (16*1000) |
|
| 131 | 131 | ||
| 132 | static void pronto_sendData(uint16_t *buffer, uint8_t len, uint8_t channel, uint16_t modfreq) |
132 | static void pronto_sendData(uint16_t *buffer, uint8_t len, uint8_t channel, uint16_t modfreq) |
| 133 | { |
133 | { |
| 134 | uint32_t currentTime = Timer_GetTicks(); |
134 | uint32_t currentTime = Timer_GetTicks(); |
| 135 | 135 | ||