[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [5095] removing unused files
From: |
antoine drouin |
Subject: |
[paparazzi-commits] [5095] removing unused files |
Date: |
Wed, 21 Jul 2010 15:56:41 +0000 |
Revision: 5095
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5095
Author: poine
Date: 2010-07-21 15:56:41 +0000 (Wed, 21 Jul 2010)
Log Message:
-----------
removing unused files
Removed Paths:
-------------
paparazzi3/trunk/sw/airborne/fms/fms_ap_link.c
paparazzi3/trunk/sw/airborne/fms/fms_ap_link.h
Deleted: paparazzi3/trunk/sw/airborne/fms/fms_ap_link.c
===================================================================
--- paparazzi3/trunk/sw/airborne/fms/fms_ap_link.c 2010-07-21 15:00:21 UTC
(rev 5094)
+++ paparazzi3/trunk/sw/airborne/fms/fms_ap_link.c 2010-07-21 15:56:41 UTC
(rev 5095)
@@ -1,60 +0,0 @@
-#include "fms_ap_link.h"
-
-#include <stdlib.h>
-
-#include "fms_debug.h"
-#include "fms_serial_port.h"
-
-
-static void configure_term(struct termios *termios, speed_t *speed);
-
-
-struct FmsApLink* ap_link_new(const char* device) {
-
- struct FmsApLink* me = malloc(sizeof(struct FmsApLink));
- me->sp = serial_port_new();
- if (serial_port_open(me->sp, device, configure_term)) {
- ap_link_free(me);
- return NULL;
- }
-
-
-
- return me;
-
-}
-
-void ap_link_free(struct FmsApLink* me) {
- if (me->sp) {
- serial_port_close(me->sp);
- serial_port_free(me->sp);
- }
- free(me);
-}
-
-
-void ap_link_parse(struct FmsApLink* me, int nb_bytes) {
-
- TRACE(TRACE_DEBUG, "ap link parsing %d bytes \n", nb_bytes);
-
-}
-
-
-
-static void configure_term(struct termios *termios, speed_t *speed) {
- /* input modes */
- termios->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|INPCK|ISTRIP|INLCR|IGNCR
- |ICRNL |IUCLC|IXON|IXANY|IXOFF|IMAXBEL);
- termios->c_iflag |= IGNPAR;
- /* control modes*/
- termios->c_cflag &= ~(CSIZE|PARENB|CRTSCTS|PARODD|HUPCL);
- termios->c_cflag |= CREAD|CS8|CSTOPB|CLOCAL;
- /* local modes */
- termios->c_lflag &= ~(ISIG|ICANON|IEXTEN|ECHO|FLUSHO|PENDIN);
- termios->c_lflag |= NOFLSH;
- /* speed */
- *speed = B115200;
-}
-
-
-
Deleted: paparazzi3/trunk/sw/airborne/fms/fms_ap_link.h
===================================================================
--- paparazzi3/trunk/sw/airborne/fms/fms_ap_link.h 2010-07-21 15:00:21 UTC
(rev 5094)
+++ paparazzi3/trunk/sw/airborne/fms/fms_ap_link.h 2010-07-21 15:56:41 UTC
(rev 5095)
@@ -1,18 +0,0 @@
-#ifndef FMS_AP_LINK_H
-#define FMS_AP_LINK_H
-
-#include "fms_serial_port.h"
-
-//#define AP_LINK_BUF_SIZE 4096
-#define AP_LINK_BUF_SIZE 256
-
-struct FmsApLink {
- struct FmsSerialPort* sp;
- char buf[AP_LINK_BUF_SIZE];
-};
-
-extern struct FmsApLink* ap_link_new(const char* device);
-extern void ap_link_free(struct FmsApLink* me);
-extern void ap_link_parse(struct FmsApLink* me, int nb_bytes);
-
-#endif /* FMS_AP_LINK_H */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [5095] removing unused files,
antoine drouin <=