The friendly Operating System for the Internet of Things
iotlab-m3/include/board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2015 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
24 #ifndef BOARD_H
25 #define BOARD_H
26 
27 #include <stdint.h>
28 
29 #include "cpu.h"
30 #include "periph_conf.h"
31 #include "board_common.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
41 #define EXTFLASH_SPI SPI_DEV(1)
42 #define EXTFLASH_CS GPIO_PIN(PORT_A,11)
43 #define EXTFLASH_WRITE GPIO_PIN(PORT_C,6)
44 #define EXTFLASH_HOLD GPIO_PIN(PORT_C,9)
45 
51 #define ISL29020_I2C I2C_0
52 #define ISL29020_ADDR 0x44
53 
59 #define LPS331AP_I2C I2C_0
60 #define LPS331AP_ADDR 0x5c
61 
67 #define L3G4200D_I2C I2C_0
68 #define L3G4200D_ADDR 0x68
69 #define L3G4200D_DRDY GPIO_PIN(PORT_C,0)
70 #define L3G4200D_INT GPIO_PIN(PORT_C,5)
71 
77 #define LSM303DLHC_I2C I2C_0
78 #define LSM303DLHC_ACC_ADDR (0x19)
79 #define LSM303DLHC_MAG_ADDR (0x1e)
80 #define LSM303DLHC_INT1 GPIO_PIN(PORT_B,12)
81 #define LSM303DLHC_INT2 GPIO_PIN(PORT_B,1)
82 #define LSM303DLHC_DRDY GPIO_PIN(PORT_B,2)
83 
85 #ifdef __cplusplus
86 }
87 #endif
88 
89 #endif /* BOARD_H */
90 
Peripheral MCU configuration for the iotlab-m3 board.