From 9ad4bfda67375c05ca590cc793da190b9dc8de5b Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 26 May 2008 15:21:44 +0000 Subject: [PATCH] Reformat. Add header. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1373 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/net/pocketbus.c | 29 +++++++++++++++++++++++++---- bertos/net/pocketbus.h | 32 ++++++++++++++++++++++++++++++-- bertos/net/pocketcmd.c | 33 +++++++++++++++++++++++++++++---- bertos/net/pocketcmd.h | 28 +++++++++++++++++++++++++++- 4 files changed, 111 insertions(+), 11 deletions(-) diff --git a/bertos/net/pocketbus.c b/bertos/net/pocketbus.c index e793f95d..63f369ac 100644 --- a/bertos/net/pocketbus.c +++ b/bertos/net/pocketbus.c @@ -1,12 +1,33 @@ /** * \file * + * This file is part of BeRTOS. + * + * Bertos 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. * - * \version $Id: pocketbus.c 20131 2007-12-13 17:39:55Z batt $ + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - * \author Francesco Sacchi + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting 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 General Public License. + * + * Copyright 2007 Develer S.r.l. (http://www.develer.com/) + * --> * * \brief pocketBus protocol implementation. * diff --git a/bertos/net/pocketbus.h b/bertos/net/pocketbus.h index d7f6a5fb..f67af836 100644 --- a/bertos/net/pocketbus.h +++ b/bertos/net/pocketbus.h @@ -1,6 +1,31 @@ /** * \file * * @@ -14,11 +39,14 @@ #ifndef NET_POCKETBUS_H #define NET_POCKETBUS_H +#include "appconfig.h" //for CONFIG_POCKETBUS_BUFLEN +#include + #include + #include + #include -#include -#include "appconfig.h" //for CONFIG_POCKETBUS_BUFLEN /** * pocketBus special characters definitions. diff --git a/bertos/net/pocketcmd.c b/bertos/net/pocketcmd.c index d59cbf41..7ae238be 100644 --- a/bertos/net/pocketcmd.c +++ b/bertos/net/pocketcmd.c @@ -1,12 +1,33 @@ /** * \file * + * This file is part of BeRTOS. * - * \version $Id: pocketcmd.c 16587 2007-10-02 14:31:02Z batt $ + * Bertos 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. * - * \author Francesco Sacchi + * 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, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting 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 General Public License. + * + * Copyright 2007 Develer S.r.l. (http://www.develer.com/) + * --> * * \brief pocketBus protocol Command layer implementation. * @@ -28,6 +49,10 @@ * * The CMD ID used is the same supplied by the master when * the command was sent. + * + * \version $Id: pocketcmd.c 16587 2007-10-02 14:31:02Z batt $ + * + * \author Francesco Sacchi */ #include "pocketcmd.h" diff --git a/bertos/net/pocketcmd.h b/bertos/net/pocketcmd.h index 7045f3fe..9f92b00b 100644 --- a/bertos/net/pocketcmd.h +++ b/bertos/net/pocketcmd.h @@ -1,14 +1,40 @@ /** * \file * * + * \brief pocketBus protocol command layer interface. + * * \version $Id: pocketcmd.h 20030 2007-12-04 16:16:09Z batt $ * * \author Francesco Sacchi * - * \brief pocketBus protocol command layer interface. */ #ifndef NET_POCKETCMD_H -- 2.25.1