2016-03-18 18:33:53 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014-2015 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License v2.1. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup boards_iotlab-m3 IoT-LAB M3 open node
|
|
|
|
* @ingroup boards
|
2018-01-23 07:00:17 +01:00
|
|
|
* @brief Support for the iotlab-m3 board
|
2016-03-18 18:33:53 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
2018-01-23 07:00:17 +01:00
|
|
|
* @brief Board specific definitions for the iotlab-m3 board
|
2016-03-18 18:33:53 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#ifndef BOARD_H
|
|
|
|
#define BOARD_H
|
2016-03-18 18:33:53 +01:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "cpu.h"
|
|
|
|
#include "periph_conf.h"
|
|
|
|
#include "board_common.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Define the interface for the L3G4200D gyroscope
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define L3G4200D_I2C I2C_0
|
|
|
|
#define L3G4200D_ADDR 0x68
|
|
|
|
#define L3G4200D_DRDY GPIO_PIN(PORT_C,9)
|
|
|
|
#define L3G4200D_INT GPIO_PIN(PORT_C,6)
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Define the interface to the LSM303DLHC accelerometer and magnetometer
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define LSM303DLHC_I2C I2C_0
|
|
|
|
#define LSM303DLHC_ACC_ADDR (0x19)
|
|
|
|
#define LSM303DLHC_MAG_ADDR (0x1e)
|
|
|
|
#define LSM303DLHC_INT1 GPIO_PIN(PORT_B,12)
|
|
|
|
#define LSM303DLHC_INT2 GPIO_PIN(PORT_B,2)
|
|
|
|
#define LSM303DLHC_DRDY GPIO_PIN(PORT_A,11)
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#endif /* BOARD_H */
|
2016-03-18 18:33:53 +01:00
|
|
|
/** @} */
|