Rev 1762 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1762 | Rev 1910 | ||
|---|---|---|---|
| Line 396... | Line 396... | ||
| 396 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_SOFTPWM; ///TODO: Change this to the actual module type |
396 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_SOFTPWM; ///TODO: Change this to the actual module type |
| 397 | txMsg.Header.ModuleId = act_softPWM_ID; |
397 | txMsg.Header.ModuleId = act_softPWM_ID; |
| 398 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
398 | txMsg.Header.Command = CAN_MODULE_CMD_GLOBAL_LIST; |
| 399 | txMsg.Length = 6; |
399 | txMsg.Length = 6; |
| 400 | 400 | ||
| - | 401 | uint32_t HwId=BIOS_GetHwId(); |
|
| 401 | txMsg.Data[0] = |
402 | txMsg.Data[0] = HwId&0xff; |
| 402 | txMsg.Data[1] = |
403 | txMsg.Data[1] = (HwId>>8)&0xff; |
| 403 | txMsg.Data[2] = |
404 | txMsg.Data[2] = (HwId>>16)&0xff; |
| 404 | txMsg.Data[3] = |
405 | txMsg.Data[3] = (HwId>>24)&0xff; |
| 405 | 406 | ||
| 406 | txMsg.Data[4] = NUMBER_OF_MODULES; |
407 | txMsg.Data[4] = NUMBER_OF_MODULES; |
| 407 | txMsg.Data[5] = ModuleSequenceNumber; |
408 | txMsg.Data[5] = ModuleSequenceNumber; |
| 408 | 409 | ||
| 409 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |
410 | while (StdCan_Put(&txMsg) != StdCan_Ret_OK); |