Clean up. Reformat.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 7 May 2010 13:55:10 +0000 (13:55 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 7 May 2010 13:55:10 +0000 (13:55 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3627 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/adc_avr.c
bertos/cpu/avr/drv/adc_avr.h
examples/triface/cmd_ctor.h
examples/triface/hw/hw_adc.c
examples/triface/hw/hw_adc.h
examples/triface/hw/hw_buzzer.h
examples/triface/hw/hw_input.h
examples/triface/hw/hw_sipo.h
examples/triface/protocol.c
examples/triface/protocol.h
examples/triface/triface.c

index 0aae674332faf44875a6fc7ce9f6aa2a161c294c..9a6f2d395f96460673ebadeee7c5f2f84d4bbbab 100644 (file)
@@ -31,7 +31,6 @@
  *
  * \brief ADC hardware-specific definition
  *
  *
  * \brief ADC hardware-specific definition
  *
- * \version $Id$
  * \author Francesco Sacchi <batt@develer.com>
  *
  * This module is automatically included so no need to include
  * \author Francesco Sacchi <batt@develer.com>
  *
  * This module is automatically included so no need to include
index fc076f194c5c01877a2badea63e11eaa3b52b81c..417e45367051efc8400a621cf8bc250cc455edab 100644 (file)
@@ -1,14 +1,36 @@
-/*!
+/**
  * \file
  * <!--
  * \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.
+ *
+ * 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/)
  * -->
  *
  * Copyright 2007 Develer S.r.l. (http://www.develer.com/)
  * -->
  *
- * \version $Id$
- *
  * \brief ADC hardware-specific definition
  *
  * \brief ADC hardware-specific definition
  *
- * \version $Id$
  * \author Francesco Sacchi <batt@develer.com>
  */
 
  * \author Francesco Sacchi <batt@develer.com>
  */
 
index bf073f1e3973df03d6cb960a336bd504babd200a..0e38c83680475f139688971939a78d88d73d7453 100644 (file)
@@ -31,9 +31,6 @@
  *
  * \brief Macro for defining command for protocol.
  *
  *
  * \brief Macro for defining command for protocol.
  *
- *
- * \version $Id$
- *
  * \author Marco Benelli <marco@develer.com>
  */
 
  * \author Marco Benelli <marco@develer.com>
  */
 
index 8c603eb84fd0e09fe9043b4ad15737dcff79150a..db51bf2886af4565188822d6796ab58cf50e24d0 100644 (file)
@@ -34,8 +34,6 @@
  * \brief ADC: Analogic to Digital Converter
  *
  *
  * \brief ADC: Analogic to Digital Converter
  *
  *
- * \version $Id$
- *
  * \author Andrea Grandi <andrea@develer.com>
  */
 
  * \author Andrea Grandi <andrea@develer.com>
  */
 
index 817b190c425cf3f8fef495ed69c39d5dca2b715e..1c6e99b80be4d23b09df0498df2bbc7261a14b06 100644 (file)
@@ -34,8 +34,6 @@
  * \brief Macro for HW_AIN_H
  *
  *
  * \brief Macro for HW_AIN_H
  *
  *
- * \version $Id$
- *
  * \author Andrea Grandi <andrea@develer.com>
  */
 
  * \author Andrea Grandi <andrea@develer.com>
  */
 
index c3cc6d3679c8eedac064fe85d2a52180f794162b..a2b683ad188b2774336a65af766f5e797e74b65e 100644 (file)
  *
  * \brief Buzzer hardware-specific definitions
  *
  *
  * \brief Buzzer hardware-specific definitions
  *
- * \version $Id$
- *
- * \author     Francesco Sacchi <batt@develer.com>
- *             Andrea Grandi <andrea@develer.com>
+ * \author Francesco Sacchi <batt@develer.com>
+ * \author Andrea Grandi <andrea@develer.com>
  */
 
 #ifndef HW_BUZZER_H
  */
 
 #ifndef HW_BUZZER_H
@@ -46,7 +44,7 @@
 #include <cfg/macros.h>
 
 #define BUZZER_BIT     BV(PE3)
 #include <cfg/macros.h>
 
 #define BUZZER_BIT     BV(PE3)
-#define IS_BUZZER_ON   (PORTE & BUZZER_BIT)
+#define IS_BUZZER_ON   (PORTE & BUZZER_BIT)
 #define BUZZER_HW_INIT  do { DDRE |= BV(DDE3); } while (0)
 #define BUZZER_ON       do { PORTE |= BUZZER_BIT; } while (0)
 #define BUZZER_OFF      do { PORTE &= ~BUZZER_BIT; } while (0)
 #define BUZZER_HW_INIT  do { DDRE |= BV(DDE3); } while (0)
 #define BUZZER_ON       do { PORTE |= BUZZER_BIT; } while (0)
 #define BUZZER_OFF      do { PORTE &= ~BUZZER_BIT; } while (0)
index e3dcf1c455d841f4a70b346a28a2628ff82d5ead..f0ef721cf89fc1246c165d9643e64d23c52f8631 100644 (file)
@@ -33,9 +33,6 @@
  *
  * \brief Macro for HW_INPUT_H
  *
  *
  * \brief Macro for HW_INPUT_H
  *
- *
- * \version $Id$
- *
  * \author Andrea Grandi <andrea@develer.com>
  */
 
  * \author Andrea Grandi <andrea@develer.com>
  */
 
 #include <avr/io.h>
 
 /* Set pins as input and enable pull-up */
 #include <avr/io.h>
 
 /* Set pins as input and enable pull-up */
-#define INPUT_INIT_D do                                        \
+#define INPUT_INIT_D do                                        \
 {                                                              \
        (DDRD &= ~(BV(PD4) | BV(PD5) | BV(PD6) | BV(PD7)));     \
        (PORTD |= (BV(PD4) | BV(PD5) | BV(PD6) | BV(PD7)));     \
 } while(0)
 
 #define INPUT_INIT_E do                                                \
 {                                                              \
        (DDRD &= ~(BV(PD4) | BV(PD5) | BV(PD6) | BV(PD7)));     \
        (PORTD |= (BV(PD4) | BV(PD5) | BV(PD6) | BV(PD7)));     \
 } while(0)
 
 #define INPUT_INIT_E do                                                \
-{                                                              \
+{                                                              \
        (DDRE &= ~(BV(PE4) | BV(PE5) | BV(PE6) | BV(PE7)));     \
        ATOMIC((PORTE |= (BV(PE4) | BV(PE5) | BV(PE6) | BV(PE7))));     \
 } while(0)
        (DDRE &= ~(BV(PE4) | BV(PE5) | BV(PE6) | BV(PE7)));     \
        ATOMIC((PORTE |= (BV(PE4) | BV(PE5) | BV(PE6) | BV(PE7))));     \
 } while(0)
index 87e5736a642d053c7bca384108dca06f9b3a27b9..9922c0520d3896cfa333959a2d33afc815514141 100644 (file)
@@ -34,8 +34,6 @@
  * \brief Macro for HW_SIPO_H
  *
  *
  * \brief Macro for HW_SIPO_H
  *
  *
- * \version $Id$
- *
  * \author Andrea Grandi <andrea@develer.com>
  * \author Daniele Basile <asterix@develer.com>
  */
  * \author Andrea Grandi <andrea@develer.com>
  * \author Daniele Basile <asterix@develer.com>
  */
index 254880e5657287ffb19dd9fde352940559a6f7a1..eec73684520a0a61c55ca2932535959cfaf1cfbf 100644 (file)
@@ -34,8 +34,6 @@
  * \brief Implementation of the command protocol between the board and the host
  *
  *
  * \brief Implementation of the command protocol between the board and the host
  *
  *
- * \version $Id$
- *
  * \author Giovanni Bajo <rasky@develer.com>
  * \author Marco Benelli <marco@develer.com>
  * \author Bernie Innocenti <bernie@codewiz.org>
  * \author Giovanni Bajo <rasky@develer.com>
  * \author Marco Benelli <marco@develer.com>
  * \author Bernie Innocenti <bernie@codewiz.org>
index 0c2500767bf6a4235b1608727e5ba13816c01cfa..8075bc8771a312a4dc5e5196e209c63e3a62c138 100644 (file)
@@ -33,8 +33,6 @@
  *
  * \brief Implementation of the command protocol between the board and the host
  *
  *
  * \brief Implementation of the command protocol between the board and the host
  *
- * \version $Id$
- *
  * \author Marco Benelli <marco@develer.com>
  */
 
  * \author Marco Benelli <marco@develer.com>
  */
 
index 3707aaa55edc7939e9482dc96fe8c11ae3890cf2..c64b6cebbe5476a326a1f931786a9b34120c5f6a 100644 (file)
@@ -31,8 +31,6 @@
  *
  * -->
  *
  *
  * -->
  *
- * \version $Id$
- *
  * \author Marco Benelli <marco@develer.com>
  * \author Bernie Innocenti <bernie@codewiz.org>
  * \author Daniele Basile <asterix@develer.com>
  * \author Marco Benelli <marco@develer.com>
  * \author Bernie Innocenti <bernie@codewiz.org>
  * \author Daniele Basile <asterix@develer.com>