From 3aa72835d6f664fd07e24c9a2e25ddf51ce38cdf Mon Sep 17 00:00:00 2001 From: les Date: Mon, 4 Oct 2010 15:29:41 +0000 Subject: [PATCH] AHRS comms: Added GPL text git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1876 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/Libraries/ahrs_comm_objects.c | 26 +++++++++++++++++ flight/Libraries/ahrs_spi_comm.c | 26 +++++++++++++++++ flight/Libraries/ahrs_spi_program_master.c | 27 +++++++++++++++++ flight/Libraries/ahrs_spi_program_slave.c | 29 ++++++++++++++++++- flight/Libraries/inc/ahrs_comm_objects.h | 28 +++++++++++++++++- flight/Libraries/inc/ahrs_spi_comm.h | 28 +++++++++++++++++- .../Libraries/inc/ahrs_spi_program_master.h | 28 +++++++++++++++++- flight/Libraries/inc/ahrs_spi_program_slave.h | 28 +++++++++++++++++- 8 files changed, 215 insertions(+), 5 deletions(-) diff --git a/flight/Libraries/ahrs_comm_objects.c b/flight/Libraries/ahrs_comm_objects.c index 83578b0c4..a085a348c 100644 --- a/flight/Libraries/ahrs_comm_objects.c +++ b/flight/Libraries/ahrs_comm_objects.c @@ -1,3 +1,29 @@ +/** + ****************************************************************************** + * + * @file ahrs_comm_objects.c + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. + * @brief AHRS comms AUVObjects. This file defined teh objects to be used. + * + * @see The GNU Public License (GPL) Version 3 + * + *****************************************************************************/ +/* + * This program 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 3 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include "ahrs_spi_comm.h" #include "pios_debug.h" diff --git a/flight/Libraries/ahrs_spi_comm.c b/flight/Libraries/ahrs_spi_comm.c index 442f79c97..58a10ca10 100644 --- a/flight/Libraries/ahrs_spi_comm.c +++ b/flight/Libraries/ahrs_spi_comm.c @@ -1,3 +1,29 @@ +/** + ****************************************************************************** + * + * @file ahrs_spi_comm.c + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. + * @brief AHRS SPI communications. + * + * @see The GNU Public License (GPL) Version 3 + * + *****************************************************************************/ +/* + * This program 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 3 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include "ahrs_spi_comm.h" #include "ahrs_spi_program.h" diff --git a/flight/Libraries/ahrs_spi_program_master.c b/flight/Libraries/ahrs_spi_program_master.c index c44bf6f49..3664ef7bd 100644 --- a/flight/Libraries/ahrs_spi_program_master.c +++ b/flight/Libraries/ahrs_spi_program_master.c @@ -1,3 +1,30 @@ +/** + ****************************************************************************** + * + * @file ahrs_spi_program_master.c + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. + * @brief AHRS programming over SPI link - master(OpenPilot) end. + * + * @see The GNU Public License (GPL) Version 3 + * + *****************************************************************************/ +/* + * This program 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 3 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + #include "ahrs_program_master.h" #include "ahrs_program.h" #include "pios_spi.h" diff --git a/flight/Libraries/ahrs_spi_program_slave.c b/flight/Libraries/ahrs_spi_program_slave.c index ed93b0681..7fde0011f 100644 --- a/flight/Libraries/ahrs_spi_program_slave.c +++ b/flight/Libraries/ahrs_spi_program_slave.c @@ -1,4 +1,31 @@ -#include +/** + ****************************************************************************** + * + * @file ahrs_spi_program_slave.c + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. + * @brief AHRS programming over SPI link - slave(AHRS) end. + * + * @see The GNU Public License (GPL) Version 3 + * + *****************************************************************************/ +/* + * This program 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 3 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + #include #include "ahrs_spi_program_slave.h" #include "ahrs_spi_program.h" diff --git a/flight/Libraries/inc/ahrs_comm_objects.h b/flight/Libraries/inc/ahrs_comm_objects.h index 36626c363..e1a803547 100644 --- a/flight/Libraries/inc/ahrs_comm_objects.h +++ b/flight/Libraries/inc/ahrs_comm_objects.h @@ -1,4 +1,30 @@ -#ifndef AHRS_COMM_OBJECTS_H +/** + ****************************************************************************** + * + * @file ahrs_comm_objects.h + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. + * @brief AHRS SPI comms UAVObject definitions. + * + * @see The GNU Public License (GPL) Version 3 + * + *****************************************************************************/ +/* + * This program 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 3 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + #ifndef AHRS_COMM_OBJECTS_H #define AHRS_COMM_OBJECTS_H #include "attitudeactual.h" diff --git a/flight/Libraries/inc/ahrs_spi_comm.h b/flight/Libraries/inc/ahrs_spi_comm.h index f9bf19e38..a6580e876 100644 --- a/flight/Libraries/inc/ahrs_spi_comm.h +++ b/flight/Libraries/inc/ahrs_spi_comm.h @@ -1,4 +1,30 @@ -#ifndef AHRSCOMMS_H_INCLUDED +/** + ****************************************************************************** + * + * @file ahrs_spi_comm.h + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. + * @brief Include file of the AHRS SPI comms exposed functionality. + * + * @see The GNU Public License (GPL) Version 3 + * + *****************************************************************************/ +/* + * This program 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 3 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + #ifndef AHRSCOMMS_H_INCLUDED #define AHRSCOMMS_H_INCLUDED #ifdef IN_AHRS //AHRS only diff --git a/flight/Libraries/inc/ahrs_spi_program_master.h b/flight/Libraries/inc/ahrs_spi_program_master.h index 205fd46fd..2a97a1797 100644 --- a/flight/Libraries/inc/ahrs_spi_program_master.h +++ b/flight/Libraries/inc/ahrs_spi_program_master.h @@ -1,4 +1,30 @@ -#ifndef AHRS_PROGRAM_MASTER_H +/** + ****************************************************************************** + * + * @file ahrs_spi_program_master.h + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. + * @brief AHRS programming over SPI link - master(OpenPilot) end. + * + * @see The GNU Public License (GPL) Version 3 + * + *****************************************************************************/ +/* + * This program 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 3 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + #ifndef AHRS_PROGRAM_MASTER_H #define AHRS_PROGRAM_MASTER_H /** Connect to AHRS and request programming mode diff --git a/flight/Libraries/inc/ahrs_spi_program_slave.h b/flight/Libraries/inc/ahrs_spi_program_slave.h index 676914def..2bdd7e60e 100644 --- a/flight/Libraries/inc/ahrs_spi_program_slave.h +++ b/flight/Libraries/inc/ahrs_spi_program_slave.h @@ -1,4 +1,30 @@ -#ifndef AHRS_SPI_PROGRAM_SLAVE_H +/** + ****************************************************************************** + * + * @file ahrs_spi_program_slave.h + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. + * @brief AHRS programming over SPI link - slave(AHRS) end. + * + * @see The GNU Public License (GPL) Version 3 + * + *****************************************************************************/ +/* + * This program 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 3 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + #ifndef AHRS_SPI_PROGRAM_SLAVE_H #define AHRS_SPI_PROGRAM_SLAVE_H void AhrsProgramReceive(void);