Przeglądaj źródła

License changes
- modbus.[ch] are LGPL
- test-modbus-master.c and test-modbus-slave.c are GPL

Stéphane Raimbault 17 lat temu
rodzic
commit
cc7591bb81
4 zmienionych plików z 57 dodań i 57 usunięć
  1. 7 9
      include/modbus/modbus.h
  2. 16 10
      src/modbus.c
  3. 17 19
      src/test-modbus-master.c
  4. 17 19
      src/test-modbus-slave.c

+ 7 - 9
include/modbus/modbus.h

@@ -1,22 +1,20 @@
 /* 
-   Copyright (C) 2001-2007 Stéphane Raimbault <stephane.raimbault@gmail.com>
-
+   Copyright (C) 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+  
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.
-   
+  
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.
-   
+  
    You should have received a copy of the GNU Lesser General Public
-   License along with this library; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
-
-   These library of functions are designed to enable a program send and
-   receive data from a device that communicates using the Modbus protocol.
+   License along with this library; if not, write to the
+   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.
 */
 
 #ifndef _MODBUS_H_

+ 16 - 10
src/modbus.c

@@ -1,24 +1,30 @@
 /* 
-   Copyright (C) 2001-2007 Stéphane Raimbault <stephane.raimbault@gmail.com>
-
+   Copyright (C) 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+  
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.
-   
+  
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.
-   
+  
    You should have received a copy of the GNU Lesser General Public
-   License along with this library; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
+   License along with this library; if not, write to the
+   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.
+*/
+
+/*
+   The library is designed to send and receive data from a device that
+   communicate via the Modbus protocol.
 
-   The functions included here have been derived from the Modicon
-   Modbus Protocol Reference Guide which can be obtained from
-   Schneider at www.schneiderautomation.com.    
-   
+   The function names used are inspired by the Modicon Modbus Protocol
+   Reference Guide which can be obtained from Schneider at
+   www.schneiderautomation.com.
+    
    Documentation:
    http://www.easysw.com/~mike/serial/serial.html
 */

+ 17 - 19
src/test-modbus-master.c

@@ -1,23 +1,21 @@
 /*
-   Copyright (C) 2001-2007 Stéphane Raimbault <stephane.raimbault@gmail.com>
-
-   This library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2 of the License, or (at your option) any later version.
-   
-   This library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-   
-   You should have received a copy of the GNU Lesser General Public
-   License along with this library; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
-
-   These library of functions are designed to enable a program send and
-   receive data from a device that communicates using the Modbus protocol.
-*/
+ * Copyright (C) 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ *
+ * Licensed under the GNU General Public License Version 2
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 #include <stdio.h>
 #include <unistd.h>

+ 17 - 19
src/test-modbus-slave.c

@@ -1,23 +1,21 @@
 /*
-   Copyright (C) 2001-2007 Stéphane Raimbault <stephane.raimbault@gmail.com>
-
-   This library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2 of the License, or (at your option) any later version.
-   
-   This library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-   
-   You should have received a copy of the GNU Lesser General Public
-   License along with this library; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
-
-   These library of functions are designed to enable a program send and
-   receive data from a device that communicates using the Modbus protocol.
-*/
+ * Copyright (C) 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ *
+ * Licensed under the GNU General Public License Version 2
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 #include <stdio.h>
 #include <unistd.h>