From 629314ef680aff5d27d5be1615805d585fc866b6 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sun, 16 Feb 2014 19:56:16 +0100 Subject: [PATCH] Include license header to prepare code for publication. Signed-off-by: Pavel Pisa --- mf624_SIMULINK.c | 40 +++++++++++++++++++++++++++------------- sfAnalogInput.c | 32 ++++++++++++++++++++++++++++++-- sfAnalogOutput.c | 34 ++++++++++++++++++++++++++++------ sfDigitalInput.c | 33 +++++++++++++++++++++++++++------ sfDigitalOutput.c | 34 ++++++++++++++++++++++++++++------ sfIRCInput.c | 28 +++++++++++++++++++++++++++- sfPWMOutput.c | 30 ++++++++++++++++++++++++++++-- sfPWMwDirOutput.c | 2 +- sfReadPWM.c | 32 ++++++++++++++++++++++++++++++++ 9 files changed, 228 insertions(+), 37 deletions(-) diff --git a/mf624_SIMULINK.c b/mf624_SIMULINK.c index ebd2276..94c3e04 100644 --- a/mf624_SIMULINK.c +++ b/mf624_SIMULINK.c @@ -1,21 +1,35 @@ /* - * Application using MF624 UIO driver + * Common Humusoft MF624 card Simulink code for use with Linux UIO driver * - * Copyright (C) 2011 Rostislav Lisovy + * Copyright (C) 2011-2014 Rostislav Lisovy + * Copyright (C) 2013 Michal Kreč + * Copyright (C) 2013 Michal Sojka * - * 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. + * Department of Control Engineering + * Faculty of Electrical Engineering + * Czech Technical University in Prague (CTU) * - * 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. + * The ERT Linux support code can be distributed in compliance + * with GNU General Public License (GPL) version 2 or later. + * Other licence can negotiated with CTU. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Next exception is granted in addition to GPL. + * Instantiating or linking compiled version of this code + * to produce an application image/executable, does not + * by itself cause the resulting application image/executable + * to be covered by the GNU General Public License. + * This exception does not however invalidate any other reasons + * why the executable file might be covered by the GNU Public License. + * Publication of enhanced or derived S-function files is required + * although. + * + * Linux ERT code is available from + * http://rtime.felk.cvut.cz/gitweb/ert_linux.git + * More CTU Linux target for Simulink components are available at + * http://lintarget.sourceforge.net/ + * + * sfuntmpl_basic.c by The MathWorks, Inc. has been used to accomplish + * required S-function structure. */ #include diff --git a/sfAnalogInput.c b/sfAnalogInput.c index 9f7dd14..fe72ebf 100644 --- a/sfAnalogInput.c +++ b/sfAnalogInput.c @@ -1,8 +1,36 @@ /* - * (c) Michal Kreč, Czech Technical University in Prague, 2013 + * S-function to support analog inputs on Humusoft MF624 card + * + * Copyright (C) 2013 Michal Kreč + * Copyright (C) 2013 Michal Sojka + * + * Department of Control Engineering + * Faculty of Electrical Engineering + * Czech Technical University in Prague (CTU) + * + * The S-Function for ERT Linux can be distributed in compliance + * with GNU General Public License (GPL) version 2 or later. + * Other licence can negotiated with CTU. + * + * Next exception is granted in addition to GPL. + * Instantiating or linking compiled version of this code + * to produce an application image/executable, does not + * by itself cause the resulting application image/executable + * to be covered by the GNU General Public License. + * This exception does not however invalidate any other reasons + * why the executable file might be covered by the GNU Public License. + * Publication of enhanced or derived S-function files is required + * although. + * + * Linux ERT code is available from + * http://rtime.felk.cvut.cz/gitweb/ert_linux.git + * More CTU Linux target for Simulink components are available at + * http://lintarget.sourceforge.net/ + * + * sfuntmpl_basic.c by The MathWorks, Inc. has been used to accomplish + * required S-function structure. */ - /* * You must specify the S_FUNCTION_NAME as the name of your S-function * (i.e. replace sfuntmpl_basic with the name of your S-function). diff --git a/sfAnalogOutput.c b/sfAnalogOutput.c index d6d89a8..3056060 100644 --- a/sfAnalogOutput.c +++ b/sfAnalogOutput.c @@ -1,12 +1,34 @@ /* - * sfuntmpl_basic.c: Basic 'C' template for a level 2 S-function. + * S-function to support analog outputs on Humusoft MF624 card * - * ------------------------------------------------------------------------- - * | See matlabroot/simulink/src/sfuntmpl_doc.c for a more detailed template | - * ------------------------------------------------------------------------- + * Copyright (C) 2013 Michal Kreč + * Copyright (C) 2013 Michal Sojka * - * Copyright 1990-2002 The MathWorks, Inc. - * $Revision: 1.27.4.2 $ + * Department of Control Engineering + * Faculty of Electrical Engineering + * Czech Technical University in Prague (CTU) + * + * The S-Function for ERT Linux can be distributed in compliance + * with GNU General Public License (GPL) version 2 or later. + * Other licence can negotiated with CTU. + * + * Next exception is granted in addition to GPL. + * Instantiating or linking compiled version of this code + * to produce an application image/executable, does not + * by itself cause the resulting application image/executable + * to be covered by the GNU General Public License. + * This exception does not however invalidate any other reasons + * why the executable file might be covered by the GNU Public License. + * Publication of enhanced or derived S-function files is required + * although. + * + * Linux ERT code is available from + * http://rtime.felk.cvut.cz/gitweb/ert_linux.git + * More CTU Linux target for Simulink components are available at + * http://lintarget.sourceforge.net/ + * + * sfuntmpl_basic.c by The MathWorks, Inc. has been used to accomplish + * required S-function structure. */ diff --git a/sfDigitalInput.c b/sfDigitalInput.c index 1204d98..d5fca66 100644 --- a/sfDigitalInput.c +++ b/sfDigitalInput.c @@ -1,12 +1,33 @@ /* - * sfuntmpl_basic.c: Basic 'C' template for a level 2 S-function. + * S-function to support digital input Humusoft MF624 card * - * ------------------------------------------------------------------------- - * | See matlabroot/simulink/src/sfuntmpl_doc.c for a more detailed template | - * ------------------------------------------------------------------------- + * Copyright (C) 2014 Pavel Pisa * - * Copyright 1990-2002 The MathWorks, Inc. - * $Revision: 1.27.4.2 $ + * Department of Control Engineering + * Faculty of Electrical Engineering + * Czech Technical University in Prague (CTU) + * + * The S-Function for ERT Linux can be distributed in compliance + * with GNU General Public License (GPL) version 2 or later. + * Other licence can negotiated with CTU. + * + * Next exception is granted in addition to GPL. + * Instantiating or linking compiled version of this code + * to produce an application image/executable, does not + * by itself cause the resulting application image/executable + * to be covered by the GNU General Public License. + * This exception does not however invalidate any other reasons + * why the executable file might be covered by the GNU Public License. + * Publication of enhanced or derived S-function files is required + * although. + * + * Linux ERT code is available from + * http://rtime.felk.cvut.cz/gitweb/ert_linux.git + * More CTU Linux target for Simulink components are available at + * http://lintarget.sourceforge.net/ + * + * sfuntmpl_basic.c by The MathWorks, Inc. has been used to accomplish + * required S-function structure. */ diff --git a/sfDigitalOutput.c b/sfDigitalOutput.c index 81c0607..b768d9c 100644 --- a/sfDigitalOutput.c +++ b/sfDigitalOutput.c @@ -1,12 +1,34 @@ /* - * sfuntmpl_basic.c: Basic 'C' template for a level 2 S-function. + * S-function to support digital outputs on Humusoft MF624 card * - * ------------------------------------------------------------------------- - * | See matlabroot/simulink/src/sfuntmpl_doc.c for a more detailed template | - * ------------------------------------------------------------------------- + * Copyright (C) 2013 Michal Kreč + * Copyright (C) 2013 Michal Sojka * - * Copyright 1990-2002 The MathWorks, Inc. - * $Revision: 1.27.4.2 $ + * Department of Control Engineering + * Faculty of Electrical Engineering + * Czech Technical University in Prague (CTU) + * + * The S-Function for ERT Linux can be distributed in compliance + * with GNU General Public License (GPL) version 2 or later. + * Other licence can negotiated with CTU. + * + * Next exception is granted in addition to GPL. + * Instantiating or linking compiled version of this code + * to produce an application image/executable, does not + * by itself cause the resulting application image/executable + * to be covered by the GNU General Public License. + * This exception does not however invalidate any other reasons + * why the executable file might be covered by the GNU Public License. + * Publication of enhanced or derived S-function files is required + * although. + * + * Linux ERT code is available from + * http://rtime.felk.cvut.cz/gitweb/ert_linux.git + * More CTU Linux target for Simulink components are available at + * http://lintarget.sourceforge.net/ + * + * sfuntmpl_basic.c by The MathWorks, Inc. has been used to accomplish + * required S-function structure. */ diff --git a/sfIRCInput.c b/sfIRCInput.c index 6779455..b9d4655 100644 --- a/sfIRCInput.c +++ b/sfIRCInput.c @@ -1,7 +1,33 @@ /* * S-function to support IRC inputs on Humusoft MF624 card * - * Based on sfuntmpl_basic.c by The MathWorks, Inc. + * Copyright (C) 2014 Pavel Pisa + * + * Department of Control Engineering + * Faculty of Electrical Engineering + * Czech Technical University in Prague (CTU) + * + * The S-Function for ERT Linux can be distributed in compliance + * with GNU General Public License (GPL) version 2 or later. + * Other licence can negotiated with CTU. + * + * Next exception is granted in addition to GPL. + * Instantiating or linking compiled version of this code + * to produce an application image/executable, does not + * by itself cause the resulting application image/executable + * to be covered by the GNU General Public License. + * This exception does not however invalidate any other reasons + * why the executable file might be covered by the GNU Public License. + * Publication of enhanced or derived S-function files is required + * although. + * + * Linux ERT code is available from + * http://rtime.felk.cvut.cz/gitweb/ert_linux.git + * More CTU Linux target for Simulink components are available at + * http://lintarget.sourceforge.net/ + * + * sfuntmpl_basic.c by The MathWorks, Inc. has been used to accomplish + * required S-function structure. */ diff --git a/sfPWMOutput.c b/sfPWMOutput.c index eaad4e9..605ff76 100644 --- a/sfPWMOutput.c +++ b/sfPWMOutput.c @@ -1,7 +1,33 @@ /* - * S-function to support IRC inputs on Humusoft MF624 card + * S-function to support PWM Output on Humusoft MF624 card * - * Based on sfuntmpl_basic.c by The MathWorks, Inc. + * Copyright (C) 2014 Pavel Pisa + * + * Department of Control Engineering + * Faculty of Electrical Engineering + * Czech Technical University in Prague (CTU) + * + * The S-Function for ERT Linux can be distributed in compliance + * with GNU General Public License (GPL) version 2 or later. + * Other licence can negotiated with CTU. + * + * Next exception is granted in addition to GPL. + * Instantiating or linking compiled version of this code + * to produce an application image/executable, does not + * by itself cause the resulting application image/executable + * to be covered by the GNU General Public License. + * This exception does not however invalidate any other reasons + * why the executable file might be covered by the GNU Public License. + * Publication of enhanced or derived S-function files is required + * although. + * + * Linux ERT code is available from + * http://rtime.felk.cvut.cz/gitweb/ert_linux.git + * More CTU Linux target for Simulink components are available at + * http://lintarget.sourceforge.net/ + * + * sfuntmpl_basic.c by The MathWorks, Inc. has been used to accomplish + * required S-function structure. */ diff --git a/sfPWMwDirOutput.c b/sfPWMwDirOutput.c index ebae4c2..31cf582 100644 --- a/sfPWMwDirOutput.c +++ b/sfPWMwDirOutput.c @@ -1,7 +1,7 @@ /* * S-function to support PWM with direction bit on Humusoft MF624 card * - * (C) Copyright 2014 Pavel Pisa + * Copyright (C) 2014 Pavel Pisa * * Department of Control Engineering * Faculty of Electrical Engineering diff --git a/sfReadPWM.c b/sfReadPWM.c index da79c92..33399ae 100644 --- a/sfReadPWM.c +++ b/sfReadPWM.c @@ -1,3 +1,35 @@ +/* + * S-function to measure external PWM signal duty cycle on Humusoft MF624 card + * + * Copyright (C) 2013 Michal Kreč + * Copyright (C) 2013 Michal Sojka + * + * Department of Control Engineering + * Faculty of Electrical Engineering + * Czech Technical University in Prague (CTU) + * + * The S-Function for ERT Linux can be distributed in compliance + * with GNU General Public License (GPL) version 2 or later. + * Other licence can negotiated with CTU. + * + * Next exception is granted in addition to GPL. + * Instantiating or linking compiled version of this code + * to produce an application image/executable, does not + * by itself cause the resulting application image/executable + * to be covered by the GNU General Public License. + * This exception does not however invalidate any other reasons + * why the executable file might be covered by the GNU Public License. + * Publication of enhanced or derived S-function files is required + * although. + * + * Linux ERT code is available from + * http://rtime.felk.cvut.cz/gitweb/ert_linux.git + * More CTU Linux target for Simulink components are available at + * http://lintarget.sourceforge.net/ + * + * sfuntmpl_basic.c by The MathWorks, Inc. has been used to accomplish + * required S-function structure. + */ #define S_FUNCTION_NAME sfReadPWM #define S_FUNCTION_LEVEL 2 -- 2.39.2