123456789101112131415161718192021222324252627282930313233343536373839404142434445
/* * $Id: inter_mcu.c,v 1.8 2006/04/30 14:05:03 hecto Exp $ * * Copyright (C) 2003-2005 Pascal Brisset, Antoine Drouin * * 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 "inter_mcu.h" #if defined SINGLE_MCU static struct fbw_state _fbw_state; static struct ap_state _ap_state; struct fbw_state* fbw_state = &_fbw_state; struct ap_state* ap_state = &_ap_state; #else /* SINGLE_MCU */ #include "link_mcu.h" struct fbw_state* fbw_state = &link_mcu_from_fbw_msg.payload.from_fbw; struct ap_state* ap_state = &link_mcu_from_ap_msg.payload.from_ap; #endif /* ! SINGLE_MCU */ volatile bool_t inter_mcu_received_fbw = FALSE; volatile bool_t inter_mcu_received_ap = FALSE; #ifdef FBW /** Variables for monitoring AP communication status */ uint8_t ap_ok; uint8_t time_since_last_ap; #endif
About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us
©2010 Koders is a trademark of Black Duck Software, Inc. Black Duck, Know Your Code and the Black Duck logo are registered trademarks of Black Duck Software, Inc. in the United States and other jurisdictions. All other trademarks are the property of their respective holders.