mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-20 19:36:19 +08:00
moving peripherals
This commit is contained in:
@@ -25,7 +25,7 @@ static void send_config(void)
|
||||
hmc5843.i2c_trans.len_w = 2;
|
||||
i2c_submit(&i2c2,&hmc5843.i2c_trans);
|
||||
while(hmc5843.i2c_trans.status == I2CTransPending);
|
||||
|
||||
|
||||
hmc5843.i2c_trans.type = I2CTransTx;
|
||||
hmc5843.i2c_trans.buf[0] = HMC5843_REG_CFGB; // set to gain to 1 Gauss
|
||||
hmc5843.i2c_trans.buf[1] = 0x01<<5;
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
*
|
||||
* Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com>
|
||||
*
|
||||
* This file is part of paparazzi.
|
||||
@@ -18,7 +18,7 @@
|
||||
* 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.
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef BOOZ_HMC5843_H
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
*
|
||||
* Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com>
|
||||
*
|
||||
* This file is part of paparazzi.
|
||||
@@ -18,7 +18,7 @@
|
||||
* 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.
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
*
|
||||
* Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com>
|
||||
*
|
||||
* This file is part of paparazzi.
|
||||
@@ -18,7 +18,7 @@
|
||||
* 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.
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef BOOZ_MAX1168_H
|
||||
@@ -32,7 +32,7 @@ extern void booz_max1168_init( void );
|
||||
|
||||
#define STA_MAX1168_IDLE 0
|
||||
#define STA_MAX1168_SENDING_REQ 1
|
||||
#define STA_MAX1168_READING_RES 2
|
||||
#define STA_MAX1168_READING_RES 2
|
||||
#define STA_MAX1168_DATA_AVAILABLE 3
|
||||
extern volatile uint8_t booz_max1168_status;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
*
|
||||
* Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com>
|
||||
*
|
||||
* This file is part of paparazzi.
|
||||
@@ -18,7 +18,7 @@
|
||||
* 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.
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "booz_ms2001.h"
|
||||
@@ -27,9 +27,9 @@ volatile uint8_t ms2001_status;
|
||||
volatile int16_t ms2001_values[MS2001_NB_AXIS];
|
||||
|
||||
void ms2001_init( void ) {
|
||||
|
||||
|
||||
ms2001_arch_init();
|
||||
|
||||
|
||||
uint8_t i;
|
||||
for (i=0; i<MS2001_NB_AXIS; i++)
|
||||
ms2001_values[i] = 0;
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
*
|
||||
* Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com>
|
||||
*
|
||||
* This file is part of paparazzi.
|
||||
@@ -18,7 +18,7 @@
|
||||
* 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.
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef BOOZ_MS2001_H
|
||||
@@ -8,4 +8,3 @@ void sc18is600_init(void) {
|
||||
sc18is600_arch_init();
|
||||
|
||||
}
|
||||
|
||||
@@ -52,4 +52,3 @@ extern void sc18is600_read_from_register(uint8_t addr);
|
||||
extern void sc18is600_arch_init(void);
|
||||
|
||||
#endif /* SC18IS600_H */
|
||||
|
||||
Reference in New Issue
Block a user