drivers/unix/unix.c
changeset 384 83793fc7ce48
parent 267 96c688ebcde7
child 391 7802a7d5584f
--- a/drivers/unix/unix.c	Tue Feb 05 10:18:25 2008 +0100
+++ b/drivers/unix/unix.c	Thu Feb 07 10:25:15 2008 +0100
@@ -101,6 +101,7 @@
 	DLSYM(canReceive)
 	DLSYM(canSend)
 	DLSYM(canOpen)
+	DLSYM(canChangeBaudRate)
 	DLSYM(canClose)
 
 	return handle;
@@ -188,3 +189,16 @@
 	WaitReceiveTaskEnd(tmp->receiveTask);
 	return res;
 }
+
+
+UNS8 canChangeBaudRate(CAN_PORT port, char* baud)
+{
+   if(port){
+		UNS8 res;
+	        //LeaveMutex();
+		res = DLL_CALL(canChangeBaudRate)(((CANPort*)port)->fd, baud);
+		//EnterMutex();
+		return res; // OK
+	}               
+	return 1; // NOT OK
+}