configure
changeset 564 81b92b8ec2b5
parent 555 ee24dcbd3e64
child 618 564a4a9862b1
equal deleted inserted replaced
563:394440e3b6e4 564:81b92b8ec2b5
   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