IoT-LAB M3 open node

Board specific files for the iotlab-m3 board. More...

Detailed Description

Board specific files for the iotlab-m3 board.

Files

file  iotlab/include/board_common.h
 Board specific definitions for the iotlab-m3 board.
 
file  periph_conf_common.h
 Peripheral MCU configuration for the iotlab-m3 board.
 
file  iotlab-a8-m3/include/board.h
 Board specific definitions for the iotlab-m3 board.
 
file  boards/iotlab-a8-m3/include/periph_conf.h
 Peripheral MCU configuration for the iotlab-m3 board.
 
file  iotlab-m3/include/board.h
 Board specific definitions for the iotlab-m3 board.
 
file  boards/iotlab-m3/include/periph_conf.h
 Peripheral MCU configuration for the iotlab-m3 board.
 

Macros

#define AT86RF2XX_PARAMS_BOARD
 Define the interface to the AT86RF231 radio. More...
 

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 

Set the default baudrate to 500K for this board

#define UART_STDIO_BAUDRATE   (500000U)
 

Xtimer configuration

Tell the xtimer that we use a 16-bit peripheral timer

#define XTIMER_WIDTH   (16U)
 
#define XTIMER_OVERHEAD   (6U)
 
#define XTIMER_SHOOT_EARLY   (3U)
 

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(PORT_D, 2)
 
#define LED1_PIN   GPIO_PIN(PORT_B, 5)
 
#define LED2_PIN   GPIO_PIN(PORT_C, 10)
 
#define LED0_MASK   (1 << 2)
 
#define LED1_MASK   (1 << 5)
 
#define LED2_MASK   (1 << 10)
 
#define LED0_ON   (GPIOD->ODR &= ~LED0_MASK)
 
#define LED0_OFF   (GPIOD->ODR |= LED0_MASK)
 
#define LED0_TOGGLE   (GPIOD->ODR ^= LED0_MASK)
 
#define LED1_ON   (GPIOB->ODR &= ~LED1_MASK)
 
#define LED1_OFF   (GPIOB->ODR |= LED1_MASK)
 
#define LED1_TOGGLE   (GPIOB->ODR ^= LED1_MASK)
 
#define LED2_ON   (GPIOC->ODR &= ~LED2_MASK)
 
#define LED2_OFF   (GPIOC->ODR |= LED2_MASK)
 
#define LED2_TOGGLE   (GPIOC->ODR ^= LED2_MASK)
 

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)
 

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)
 

Define the interface for the connected flash memory

#define EXTFLASH_SPI   SPI_DEV(1)
 
#define EXTFLASH_CS   GPIO_PIN(PORT_A,11)
 
#define EXTFLASH_WRITE   GPIO_PIN(PORT_C,6)
 
#define EXTFLASH_HOLD   GPIO_PIN(PORT_C,9)
 

Define the interface to the ISL29020 light sensor

#define ISL29020_I2C   I2C_0
 
#define ISL29020_ADDR   0x44
 

Define the interface to the LPS331AP pressure sensor

#define LPS331AP_I2C   I2C_0
 
#define LPS331AP_ADDR   0x5c
 

Define the interface for the L3G4200D gyroscope

#define L3G4200D_I2C   I2C_0
 
#define L3G4200D_ADDR   0x68
 
#define L3G4200D_DRDY   GPIO_PIN(PORT_C,0)
 
#define L3G4200D_INT   GPIO_PIN(PORT_C,5)
 

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,1)
 
#define LSM303DLHC_DRDY   GPIO_PIN(PORT_B,2)
 

Macro Definition Documentation

◆ AT86RF2XX_PARAMS_BOARD

#define AT86RF2XX_PARAMS_BOARD
Value:
{.spi = SPI_DEV(0), \
.spi_clk = SPI_CLK_5MHZ, \
.cs_pin = GPIO_PIN(PORT_A, 4), \
.int_pin = GPIO_PIN(PORT_C, 4), \
.sleep_pin = GPIO_PIN(PORT_A, 2), \
.reset_pin = GPIO_PIN(PORT_C, 1)}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define SPI_DEV(x)
Default SPI device access macro.
Definition: spi.h:73

Define the interface to the AT86RF231 radio.

{spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}

Definition at line 62 of file iotlab/include/board_common.h.