[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [6256] whitespace cleanup
From: |
Felix Ruess |
Subject: |
[paparazzi-commits] [6256] whitespace cleanup |
Date: |
Mon, 25 Oct 2010 22:42:10 +0000 |
Revision: 6256
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6256
Author: flixr
Date: 2010-10-25 22:42:10 +0000 (Mon, 25 Oct 2010)
Log Message:
-----------
whitespace cleanup
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/booz/booz2_analog.h
paparazzi3/trunk/sw/airborne/lisa/test_adc.c
Modified: paparazzi3/trunk/sw/airborne/booz/booz2_analog.h
===================================================================
--- paparazzi3/trunk/sw/airborne/booz/booz2_analog.h 2010-10-25 22:27:07 UTC
(rev 6255)
+++ paparazzi3/trunk/sw/airborne/booz/booz2_analog.h 2010-10-25 22:42:10 UTC
(rev 6256)
@@ -1,6 +1,6 @@
/*
* $Id$
- *
+ *
* Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
*
* This file is part of paparazzi.
@@ -18,7 +18,7 @@
* You should have received a copy of the GNU General Public License
* along with paparazzi; see the file COPYING. If not, write to
* the Free Software Foundation, 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Boston, MA 02111-1307, USA.
*/
#ifndef BOOZ2_ANALOG_H
@@ -29,10 +29,10 @@
#ifdef USE_EXTRA_ADC
#include "std.h"
-extern uint16_t booz2_adc_1;
-extern uint16_t booz2_adc_2;
-extern uint16_t booz2_adc_3;
-extern uint16_t booz2_adc_4;
+extern uint16_t booz2_adc_1;
+extern uint16_t booz2_adc_2;
+extern uint16_t booz2_adc_3;
+extern uint16_t booz2_adc_4;
extern void booz2_analog_periodic( void );
Modified: paparazzi3/trunk/sw/airborne/lisa/test_adc.c
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/test_adc.c 2010-10-25 22:27:07 UTC
(rev 6255)
+++ paparazzi3/trunk/sw/airborne/lisa/test_adc.c 2010-10-25 22:42:10 UTC
(rev 6256)
@@ -1,6 +1,6 @@
/*
* $Id$
- *
+ *
* Copyright (C) 2010 The Paparazzi Team
*
* This file is part of paparazzi.
@@ -38,28 +38,28 @@
static inline void main_periodic_task( void );
static inline void main_event_task( void );
-static struct adc_buf adc0_buf;
-static struct adc_buf adc1_buf;
-static struct adc_buf adc2_buf;
-static struct adc_buf adc3_buf;
+static struct adc_buf adc0_buf;
+static struct adc_buf adc1_buf;
+static struct adc_buf adc2_buf;
+static struct adc_buf adc3_buf;
extern uint8_t adc_new_data_trigger;
static inline void main_init( void ) {
- hw_init();
- sys_time_init();
- adc_init();
- adc_buf_channel(0, &adc0_buf, 8);
- adc_buf_channel(1, &adc1_buf, 3);
- adc_buf_channel(2, &adc2_buf, 3);
- adc_buf_channel(3, &adc3_buf, 3);
+ hw_init();
+ sys_time_init();
+ adc_init();
+ adc_buf_channel(0, &adc0_buf, 8);
+ adc_buf_channel(1, &adc1_buf, 3);
+ adc_buf_channel(2, &adc2_buf, 3);
+ adc_buf_channel(3, &adc3_buf, 3);
}
int main( void ) {
- main_init();
-
+ main_init();
+
while(1) {
- if (sys_time_periodic()) {
+ if (sys_time_periodic()) {
main_periodic_task();
}
main_event_task();
@@ -69,14 +69,14 @@
static inline void main_periodic_task( void ) {
RunOnceEvery(100, {DOWNLINK_SEND_ALIVE(DefaultChannel, 16, MD5SUM);});
- RunOnceEvery(100, {/*LED_TOGGLE(7);*/ DOWNLINK_SEND_TIME(DefaultChannel,
&cpu_time_sec);});
+ RunOnceEvery(100, {/*LED_TOGGLE(7);*/ DOWNLINK_SEND_TIME(DefaultChannel,
&cpu_time_sec);});
LED_PERIODIC();
}
static inline void main_event_task( void ) {
-
- if (adc_new_data_trigger) {
- adc_new_data_trigger = 0;
+
+ if (adc_new_data_trigger) {
+ adc_new_data_trigger = 0;
uint16_t v1 = 123;
uint16_t v2 = 123;
// v1 = (((adc0_buf.values[0])));
@@ -86,4 +86,3 @@
}
}
-
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [6256] whitespace cleanup,
Felix Ruess <=