msbiot/include/board.h File Reference

Board specific definitions for the MSB-IoT board. More...

Detailed Description

Board specific definitions for the MSB-IoT board.

Author
Fabian Nack nack@.nosp@m.inf..nosp@m.fu-be.nosp@m.rlin.nosp@m..de

Definition in file msbiot/include/board.h.

#include "cpu.h"
#include "periph_conf.h"
+ Include dependency graph for msbiot/include/board.h:

Go to the source code of this file.

Macros

Configure connected CC1101 (radio) device
#define CC110X_SPI   SPI_DEV(0)
 
#define CC110X_CS   GPIO_PIN(PORT_B, 12)
 
#define CC110X_GDO0   GPIO_PIN(PORT_C, 4)
 
#define CC110X_GDO1   GPIO_PIN(PORT_A, 6)
 
#define CC110X_GDO2   GPIO_PIN(PORT_C, 5)
 
Configure connected MPU-9150 device
#define MPU9150_I2C   I2C_0
 
#define MPU9150_HW_ADDR   (0x68)
 
#define MPU9150_COMP_ADDR   (0x0E)
 
LED pin definitions and handlers
#define LED0_PIN   GPIO_PIN(PORT_B, 8)
 
#define LED1_PIN   GPIO_PIN(PORT_B, 14)
 
#define LED2_PIN   GPIO_PIN(PORT_B, 15)
 
#define LED_PORT   GPIOB
 
#define LED0_MASK   (1 << 8)
 
#define LED1_MASK   (1 << 14)
 
#define LED2_MASK   (1 << 15)
 
#define LED0_ON   (LED_PORT->BSRR = LED0_MASK)
 
#define LED0_OFF   (LED_PORT->BSRR = (LED0_MASK << 16))
 
#define LED0_TOGGLE   (LED_PORT->ODR ^= LED0_MASK)
 
#define LED1_ON   (LED_PORT->BSRR = LED1_MASK)
 
#define LED1_OFF   (LED_PORT->BSRR = (LED1_MASK << 16))
 
#define LED1_TOGGLE   (LED_PORT->ODR ^= LED1_MASK)
 
#define LED2_ON   (LED_PORT->BSRR = LED2_MASK)
 
#define LED2_OFF   (LED_PORT->BSRR = (LED2_MASK << 16))
 
#define LED2_TOGGLE   (LED_PORT->ODR ^= LED2_MASK)
 

Functions

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