drivers/unix/unix.c
changeset 155 746b49869cbc
parent 151 ebf4bd44f282
child 162 8331c670a3de
equal deleted inserted replaced
154:1b3165f2d17d 155:746b49869cbc
   119 
   119 
   120 UNS8 canSend(CAN_PORT port, Message *m)
   120 UNS8 canSend(CAN_PORT port, Message *m)
   121 {
   121 {
   122 	if(port){
   122 	if(port){
   123 		UNS8 res;
   123 		UNS8 res;
   124 	        LeaveMutex();
   124 	        //LeaveMutex();
   125 		res = DLL_CALL(canSend)(((CANPort*)port)->fd, m);
   125 		res = DLL_CALL(canSend)(((CANPort*)port)->fd, m);
   126 		EnterMutex();
   126 		//EnterMutex();
   127 		return res;
   127 		return res;
   128 	}               
   128 	}               
   129 	return -1;
   129 	return -1;
   130 }
   130 }
   131 
   131