pba-d-01-kw2x/include/board.h File Reference

Board specific definitions for the phyWAVE evaluation board. More...

Detailed Description

Board specific definitions for the phyWAVE evaluation board.

Author
Johann Fischer j.fis.nosp@m.cher.nosp@m.@phyt.nosp@m.ec.d.nosp@m.e
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file pba-d-01-kw2x/include/board.h.

#include "cpu.h"
#include "periph_conf.h"
+ Include dependency graph for pba-d-01-kw2x/include/board.h:

Go to the source code of this file.

Macros

LED pin definitions and handlers
#define LED0_PIN   GPIO_PIN(PORT_D, 6)
 
#define LED1_PIN   GPIO_PIN(PORT_D, 4)
 
#define LED2_PIN   GPIO_PIN(PORT_A, 4)
 
#define LED0_MASK   (1 << 6)
 
#define LED1_MASK   (1 << 4)
 
#define LED2_MASK   (1 << 4)
 
#define LED0_ON   (GPIOD->PCOR = LED0_MASK)
 
#define LED0_OFF   (GPIOD->PSOR = LED0_MASK)
 
#define LED0_TOGGLE   (GPIOD->PTOR = LED0_MASK)
 
#define LED1_ON   (GPIOD->PCOR = LED1_MASK)
 
#define LED1_OFF   (GPIOD->PSOR = LED1_MASK)
 
#define LED1_TOGGLE   (GPIOD->PTOR = LED1_MASK)
 
#define LED2_ON   (GPIOA->PCOR = LED2_MASK)
 
#define LED2_OFF   (GPIOA->PSOR = LED2_MASK)
 
#define LED2_TOGGLE   (GPIOA->PTOR = LED2_MASK)
 
Macro for button S1/S2.
#define BTN0_PORT   PORTD
 
#define BTN0_PIN   GPIO_PIN(PORT_D, 1)
 
#define BTN0_MODE   GPIO_IN_PU
 
Macro for capacitive sensor button.
#define BTN1_PORT   PORTC
 
#define BTN1_PIN   GPIO_PIN(PORT_C, 6)
 
#define BTN1_MODE   GPIO_IN
 
KW2XRF configuration

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

#define KW2XRF_PARAMS_BOARD
 
#define KW2XRF_SHARED_SPI   0
 
Define the interface for the HDC1000 humidity sensor
#define HDC1000_I2C   (I2C_DEV(0))
 
#define HDC1000_ADDR   (0x43)
 
Define the interface for the MAG3110 magnetometer sensor
#define MAG3110_I2C   (I2C_DEV(0))
 
#define MAG3110_ADDR   (0x0E)
 
Define the interface for the MMA8652 tri-axis accelerometer sensor
#define MMA8652_I2C   (I2C_DEV(0))
 
#define MMA8652_ADDR   (0x1D)
 
Define the interface for the MPL3115A2 pressure sensor
#define MPL3115A2_I2C   (I2C_DEV(0))
 
#define MPL3115A2_ADDR   (0x60)
 
Define the interface for the TCS3772 light sensor
#define TCS37727_PARAMS
 
Define the interface for the TMP006 IR-Termopile sensor
#define TMP006_I2C   (I2C_DEV(0))
 
#define TMP006_ADDR   (0x41)
 

Functions

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