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
imu_b2_arch.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com>
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 #ifndef IMU_B2_ARCH_H
25 #define IMU_B2_ARCH_H
26 
27 /*
28 
29  MAX1168 SPI ADC connected on SPI1
30  SS on P0.20
31  EOC on P0.16 ( EINT0 )
32 
33  PNI mag on same bus
34  SS on p1.28
35  EOC P0.30 ( EINT3 )
36  RESET P1.19
37 
38 */
39 
40 #include "std.h"
41 #include "LPC21xx.h"
42 #include "interrupt_hw.h"
43 
44 #define IMU_SSP_STA_IDLE 0
45 #define IMU_SSP_STA_BUSY_MAX1168 1
46 #define IMU_SSP_STA_BUSY_MS2100 2
47 extern volatile uint8_t imu_ssp_status;
48 extern int imu_overrun;
49 
50 
51 
52 
53 
54 #endif /* IMU_B2_ARCH_H */
int imu_overrun
Definition: imu_b2_arch.c:26
unsigned char uint8_t
Definition: types.h:14
volatile uint8_t imu_ssp_status
Definition: imu_b2_arch.c:27