--- 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
+}