Rev 1178 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1178 | Rev 1910 | ||
|---|---|---|---|
| Line 232... | Line 232... | ||
| 232 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_SLOWPWM; ///TODO: Change this to the actual module type |
232 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_SLOWPWM; ///TODO: Change this to the actual module type |
| 233 | txMsg.Header.ModuleId = act_SlowPWM_ID; |
233 | txMsg.Header.ModuleId = act_SlowPWM_ID; |
| 234 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
234 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
| 235 | txMsg.Length = 6; |
235 | txMsg.Length = 6; |
| 236 | 236 | ||
| - | 237 | uint32_t HwId=BIOS_GetHwId(); |
|
| 237 | txMsg.Data[0] = |
238 | txMsg.Data[0] = HwId&0xff; |
| 238 | txMsg.Data[1] = |
239 | txMsg.Data[1] = (HwId>>8)&0xff; |
| 239 | txMsg.Data[2] = |
240 | txMsg.Data[2] = (HwId>>16)&0xff; |
| 240 | txMsg.Data[3] = |
241 | txMsg.Data[3] = (HwId>>24)&0xff; |
| 241 | 242 | ||
| 242 | txMsg.Data[4] = NUMBER_OF_MODULES; |
243 | txMsg.Data[4] = NUMBER_OF_MODULES; |
| 243 | txMsg.Data[5] = ModuleSequenceNumber; |
244 | txMsg.Data[5] = ModuleSequenceNumber; |
| 244 | 245 | ||
| 245 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |
246 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |