paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [4709]


From: antoine drouin
Subject: [paparazzi-commits] [4709]
Date: Tue, 16 Mar 2010 04:23:46 +0000

Revision: 4709
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4709
Author:   poine
Date:     2010-03-16 04:23:46 +0000 (Tue, 16 Mar 2010)
Log Message:
-----------


Modified Paths:
--------------
    paparazzi3/trunk/conf/autopilot/stm32_test_progs.makefile

Added Paths:
-----------
    paparazzi3/trunk/sw/airborne/lisa/test_ovc.c

Modified: paparazzi3/trunk/conf/autopilot/stm32_test_progs.makefile
===================================================================
--- paparazzi3/trunk/conf/autopilot/stm32_test_progs.makefile   2010-03-16 
02:26:19 UTC (rev 4708)
+++ paparazzi3/trunk/conf/autopilot/stm32_test_progs.makefile   2010-03-16 
04:23:46 UTC (rev 4709)
@@ -51,7 +51,7 @@
 test_uart.CFLAGS += -DUSE_SYS_TIME -DSYS_TIME_LED=1
 test_uart.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC(1./512.)'
 test_uart.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c
-test_uart.CFLAGS += -DUSE_UART1 -DUART1_BAUD=B57600
+test_uart.CFLAGS += -DUSE_UART2 -DUART2_BAUD=B57600
 test_uart.srcs += $(SRC_ARCH)/uart_hw.c
 
 
@@ -229,3 +229,23 @@
 test_mc.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC(1./512.)'
 test_mc.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c
 
+#
+# test overo com
+#
+test_ovc.ARCHDIR = $(ARCHI)
+test_ovc.TARGET = test_ovc
+test_ovc.TARGETDIR = test_ovc
+test_ovc.CFLAGS += -I$(SRC_LISA) -I$(ARCHI) -DPERIPHERALS_AUTO_INIT
+test_ovc.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG)
+test_ovc.srcs += $(SRC_LISA)/test_ovc.c       \
+                 $(SRC_LISA)/exceptions.c     \
+                 $(SRC_LISA)/vector_table.c
+test_ovc.CFLAGS += -DUSE_LED
+test_ovc.CFLAGS += -DUSE_SYS_TIME -DSYS_TIME_LED=1
+test_ovc.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC(1./512.)'
+test_ovc.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c
+
+test_ovc.CFLAGS += -DUSE_UART2 -DUART2_BAUD=B57600
+test_ovc.srcs += $(SRC_ARCH)/uart_hw.c
+
+

Added: paparazzi3/trunk/sw/airborne/lisa/test_ovc.c
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/test_ovc.c                                
(rev 0)
+++ paparazzi3/trunk/sw/airborne/lisa/test_ovc.c        2010-03-16 04:23:46 UTC 
(rev 4709)
@@ -0,0 +1,57 @@
+/*
+ * $Id$
+ *  
+ * Copyright (C) 2009 Antoine Drouin <address@hidden>
+ *
+ * This file is part of paparazzi.
+ *
+ * paparazzi 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, or (at your option)
+ * any later version.
+ *
+ * paparazzi 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 paparazzi; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA. 
+ */
+
+#include <stm32/flash.h>
+#include <stm32/misc.h>
+
+#include BOARD_CONFIG
+#include "init_hw.h"
+#include "sys_time.h"
+
+static inline void main_periodic( void );
+
+int main(void) {
+
+  hw_init();
+  sys_time_init();
+
+  while (1) {
+
+    if (sys_time_periodic())
+      main_periodic();
+  
+  }
+  
+  return 0;
+}
+
+
+static inline void main_periodic( void ) {
+  //  LED_TOGGLE(1);
+
+  uart2_transmit('a');
+  uart2_transmit('b');
+  uart2_transmit('b');
+  uart2_transmit('\n');
+}
+





reply via email to

[Prev in Thread] Current Thread [Next in Thread]