Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
inter_mcu.c
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Copyright (C) 2003-2005 Pascal Brisset, Antoine Drouin
5  *
6  * This file is part of paparazzi.
7  *
8  * paparazzi is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * paparazzi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with paparazzi; see the file COPYING. If not, write to
20  * the Free Software Foundation, 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  *
23  */
24 
25 #include "inter_mcu.h"
26 
27 #if defined SINGLE_MCU
28 static struct fbw_state _fbw_state;
29 static struct ap_state _ap_state;
30 struct fbw_state* fbw_state = &_fbw_state;
31 struct ap_state* ap_state = &_ap_state;
32 #else /* SINGLE_MCU */
33 #include "link_mcu.h"
36 #endif /* ! SINGLE_MCU */
37 
38 volatile bool_t inter_mcu_received_fbw = FALSE;
39 volatile bool_t inter_mcu_received_ap = FALSE;
40 
41 #ifdef FBW
42 
43 uint8_t ap_ok;
44 uint8_t time_since_last_ap;
45 #endif
volatile bool_t inter_mcu_received_ap
Definition: inter_mcu.c:39
volatile bool_t inter_mcu_received_fbw
Definition: inter_mcu.c:38
struct fbw_state * fbw_state
Definition: inter_mcu.c:34
#define FALSE
Definition: imu_chimu.h:141
struct ap_state * ap_state
Definition: inter_mcu.c:35
unsigned char uint8_t
Definition: types.h:14