equal
deleted
inserted
replaced
425 if ! grep -q CAN_Init $PW32DIR/cancfg.h ; then |
425 if ! grep -q CAN_Init $PW32DIR/cancfg.h ; then |
426 echo "Pcan Light header/lib is for second port of device only" |
426 echo "Pcan Light header/lib is for second port of device only" |
427 echo "CAN_* calls redefined to CAN2_* " |
427 echo "CAN_* calls redefined to CAN2_* " |
428 echo '#define CAN_Init CAN2_Init' >> $PW32DIR/cancfg.h |
428 echo '#define CAN_Init CAN2_Init' >> $PW32DIR/cancfg.h |
429 echo '#define CAN_Read CAN2_Read' >> $PW32DIR/cancfg.h |
429 echo '#define CAN_Read CAN2_Read' >> $PW32DIR/cancfg.h |
|
430 echo '#define CAN_ReadEx CAN2_ReadEx' >> $PW32DIR/cancfg.h |
|
431 echo '#define CAN_SetRcvEvent CAN2_SetRcvEvent' >> $PW32DIR/cancfg.h |
430 echo '#define CAN_Write CAN2_Write' >> $PW32DIR/cancfg.h |
432 echo '#define CAN_Write CAN2_Write' >> $PW32DIR/cancfg.h |
431 echo '#define CAN_Close CAN2_Close' >> $PW32DIR/cancfg.h |
433 echo '#define CAN_Close CAN2_Close' >> $PW32DIR/cancfg.h |
432 fi |
434 fi |
433 cat $PW32DIR/cancfg.h.tail >> $PW32DIR/cancfg.h |
435 cat $PW32DIR/cancfg.h.tail >> $PW32DIR/cancfg.h |
434 fi |
436 fi |