2014-06-11 14:59:24 +02:00
|
|
|
/*
|
2015-11-13 16:30:42 +01:00
|
|
|
* Copyright (C) 2014-2015 Freie Universität Berlin
|
2014-06-11 14:59:24 +02:00
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
2014-07-03 10:36:46 +02:00
|
|
|
* Public License v2.1. See the file LICENSE in the top level directory for more
|
2014-06-11 14:59:24 +02:00
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-07-26 11:59:14 +02:00
|
|
|
* @ingroup boards_iotlab-m3
|
2014-06-11 14:59:24 +02:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
2018-01-23 07:00:17 +01:00
|
|
|
* @brief Board specific definitions for the iotlab-m3 board
|
2014-06-11 14:59:24 +02:00
|
|
|
*
|
|
|
|
* @author Alaeddine Weslati <alaeddine.weslati@inria.fr>
|
|
|
|
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
|
|
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#ifndef BOARD_H
|
|
|
|
#define BOARD_H
|
2014-06-11 14:59:24 +02:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "cpu.h"
|
2014-09-30 11:22:22 +02:00
|
|
|
#include "periph_conf.h"
|
2016-03-18 18:33:53 +01:00
|
|
|
#include "board_common.h"
|
2014-06-11 14:59:24 +02:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-11-05 16:13:57 +01:00
|
|
|
/**
|
|
|
|
* @name Define the interface for the connected flash memory
|
|
|
|
* @{
|
|
|
|
*/
|
2016-11-08 18:28:32 +01:00
|
|
|
#define EXTFLASH_SPI SPI_DEV(1)
|
2018-02-28 18:26:39 +01:00
|
|
|
#define EXTFLASH_CS GPIO_PIN(PORT_A, 11)
|
|
|
|
#define EXTFLASH_WRITE GPIO_PIN(PORT_C, 6)
|
|
|
|
#define EXTFLASH_HOLD GPIO_PIN(PORT_C, 9)
|
2014-10-07 11:47:51 +02:00
|
|
|
/** @} */
|
|
|
|
|
2014-10-15 15:01:05 +02:00
|
|
|
/**
|
|
|
|
* @name Define the interface to the LPS331AP pressure sensor
|
|
|
|
* @{
|
|
|
|
*/
|
2018-12-30 16:00:03 +01:00
|
|
|
#define LPSXXX_PARAM_ADDR (0x5C)
|
2014-10-15 15:01:05 +02:00
|
|
|
/** @} */
|
|
|
|
|
2014-10-20 20:01:17 +02:00
|
|
|
/**
|
|
|
|
* @name Define the interface for the L3G4200D gyroscope
|
|
|
|
* @{
|
|
|
|
*/
|
2018-02-28 18:26:39 +01:00
|
|
|
#define L3G4200D_PARAM_INT2 GPIO_PIN(PORT_C, 0)
|
|
|
|
#define L3G4200D_PARAM_INT1 GPIO_PIN(PORT_C, 5)
|
2014-10-20 20:01:17 +02:00
|
|
|
/** @} */
|
|
|
|
|
2014-11-05 16:13:57 +01:00
|
|
|
/**
|
|
|
|
* @name Define the interface to the LSM303DLHC accelerometer and magnetometer
|
|
|
|
* @{
|
|
|
|
*/
|
2018-02-28 18:26:39 +01:00
|
|
|
#define LSM303DLHC_PARAM_ACC_PIN GPIO_PIN(PORT_B, 12)
|
|
|
|
#define LSM303DLHC_PARAM_MAG_PIN GPIO_PIN(PORT_B, 2)
|
2014-11-05 16:13:57 +01:00
|
|
|
/** @} */
|
|
|
|
|
2021-12-04 00:32:36 +01:00
|
|
|
/**
|
|
|
|
* @name MTD configuration
|
|
|
|
* @{
|
|
|
|
*/
|
2023-11-23 17:46:10 +01:00
|
|
|
#define MTD_0 mtd_dev_get(0) /**< SPI NOR Flash device */
|
2021-12-04 00:32:36 +01:00
|
|
|
/** @} */
|
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#endif /* BOARD_H */
|
2014-06-11 14:59:24 +02:00
|
|
|
/** @} */
|