Revision f7d2c786 Target/Source/ARMCM3_STM32/can.c
Target/Source/ARMCM3_STM32/can.c | ||
---|---|---|
525 | 525 |
(((blt_int32u)canData[1]) << 8) | \ |
526 | 526 |
(((blt_int32u)canData[0])); |
527 | 527 |
#if (BOOT_GATE_ENABLE > 0) |
528 |
#if defined(BOOT_COM_DEVICE_LEGACY_ID) |
|
528 | 529 |
if ((commandSend == BLT_TRUE && deviceID == 0) || |
529 |
(commandSend != BLT_TRUE && (deviceID == (blt_int32u)BOOT_COM_DEVICE_ID) || deviceID == (blt_int32u)BOOT_COM_DEVICE_LEGACY_ID)) {
|
|
530 |
(commandSend != BLT_TRUE && (deviceID == (blt_int32u)BOOT_COM_DEVICE_ID || deviceID == (blt_int32u)BOOT_COM_DEVICE_LEGACY_ID))) {
|
|
530 | 531 |
#else |
532 |
if ((commandSend == BLT_TRUE && deviceID == 0) || |
|
533 |
(commandSend != BLT_TRUE && (deviceID == (blt_int32u)BOOT_COM_DEVICE_ID))) { |
|
534 |
#endif |
|
535 |
#else |
|
536 |
#if defined(BOOT_COM_DEVICE_LEGACY_ID) |
|
531 | 537 |
if (deviceID == (blt_int32u)BOOT_COM_DEVICE_ID || |
532 | 538 |
deviceID == (blt_int32u)BOOT_COM_DEVICE_LEGACY_ID) { |
539 |
#else |
|
540 |
if (deviceID == (blt_int32u)BOOT_COM_DEVICE_ID) { |
|
541 |
#endif |
|
533 | 542 |
#endif |
534 | 543 |
/* store length of the packet */ |
535 | 544 |
toReceive = canData[4]; |
Also available in: Unified diff