Rev 1910 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1910 | Rev 2135 | ||
|---|---|---|---|
| Line 150... | Line 150... | ||
| 150 | StdCan_Set_class(txMsg.Header, CAN_MODULE_CLASS_ACT); |
150 | StdCan_Set_class(txMsg.Header, CAN_MODULE_CLASS_ACT); |
| 151 | StdCan_Set_direction(txMsg.Header, DIRECTIONFLAG_FROM_OWNER); |
151 | StdCan_Set_direction(txMsg.Header, DIRECTIONFLAG_FROM_OWNER); |
| 152 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_HD44789; |
152 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_HD44789; |
| 153 | txMsg.Header.ModuleId = act_hd44780_ID; |
153 | txMsg.Header.ModuleId = act_hd44780_ID; |
| 154 | txMsg.Header.Command = CAN_MODULE_CMD_HD44789_LCD_BACKLIGHT; |
154 | txMsg.Header.Command = CAN_MODULE_CMD_HD44789_LCD_BACKLIGHT; |
| 155 | txMsg.Length = |
155 | txMsg.Length = 2; |
| 156 | 156 | ||
| 157 | #if (act_hd44780_TYPE==0) |
157 | #if (act_hd44780_TYPE==0) |
| 158 | txMsg.Data[0] = OCR0A; |
158 | txMsg.Data[0] = OCR0A; |
| 159 | #else |
159 | #else |
| 160 | txMsg.Data[0] = OCR0B; |
160 | txMsg.Data[0] = OCR0B; |
| 161 | #endif |
161 | #endif |
| 162 | #if act_hd44780_USE_AUTO_BL == 1 |
162 | #if act_hd44780_USE_AUTO_BL == 1 |
| 163 | txMsg.Data[1] = autoMode; |
163 | txMsg.Data[1] = autoMode; |
| - | 164 | #else |
|
| 164 | txMsg. |
165 | txMsg.Data[1] = 0; |
| 165 | #endif |
166 | #endif |
| 166 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |
167 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |
| 167 | break; |
168 | break; |
| 168 | } |
169 | } |
| 169 | } |
170 | } |