sltb001a/include/board.h File Reference

Board specific definitions for the SLTB001A starter kit. More...

Detailed Description

Board specific definitions for the SLTB001A starter kit.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Bas Stottelaar basst.nosp@m.otte.nosp@m.laar@.nosp@m.gmai.nosp@m.l.com

Definition in file sltb001a/include/board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph/gpio.h"
#include "periph/spi.h"
+ Include dependency graph for sltb001a/include/board.h:

Go to the source code of this file.

Macros

Xtimer configuration

The timer runs at 250 KHz to increase accuracy.

#define XTIMER_HZ   (250000UL)
 
#define XTIMER_WIDTH   (16)
 
Push button pin definitions
#define PB0_PIN   GPIO_PIN(PD, 14)
 
#define PB1_PIN   GPIO_PIN(PD, 15)
 
LED pin definitions
#define LED0_PIN   GPIO_PIN(PD, 12)
 
#define LED1_PIN   GPIO_PIN(PD, 11)
 
Macros for controlling the on-board LEDs
#define LED0_ON   gpio_set(LED0_PIN)
 
#define LED0_OFF   gpio_clear(LED0_PIN)
 
#define LED0_TOGGLE   gpio_toggle(LED0_PIN)
 
#define LED1_ON   gpio_set(LED1_PIN)
 
#define LED1_OFF   gpio_clear(LED1_PIN)
 
#define LED1_TOGGLE   gpio_toggle(LED1_PIN)
 
Environmental sensors configuration

Pin for enabling environmental sensors (BMP280, Si1133, Si7021, Si7210A).

#define ENV_SENSE_PIC_ADDR   (0x01)
 
#define ENV_SENSE_PIC_BIT   (0)
 
Pressure sensor configuration

Connection to the on-board pressure sensor (BMP280).

#define BMP280_ENABLED   (1)
 
#define BMP280_I2C   I2C_DEV(0)
 
#define BMX280_PARAM_I2C_DEV   BMP280_I2C
 
Air quality/gas sensor configuration

Connection to the on-board air quality/gas sensor (CCS811).

#define CCS811_ENABLED   (0)
 
#define CCS811_I2C   I2C_DEV(0)
 
#define CCS811_PIC_ADDR   (0x03)
 
#define CCS811_PIC_EN_BIT   (0x00)
 
#define CCS811_PIC_WAKE_BIT   (0x01)
 
IMU sensor configuration

Connection to the on-board IMU sensor (ICM-20648).

#define ICM20648_ENABLED   (0)
 
#define ICM20648_SPI   SPI_DEV(0)
 
#define ICM20648_PIC_ADDR   (0x00)
 
#define ICM20648_PIC_EN_BIT   (0x00)
 
Power and Interrupt controller

Pin for communication with the Power and Interrupt Controller.

#define PIC_INT_WAKE_PIN   GPIO_PIN(PD, 10)
 
#define PIC_I2C   I2C_DEV(0)
 
#define PIC_I2C_ADDR   (0x48)
 
RGB leds configuration

There are four RGB leds on the board.

#define RGB_LED1_ENABLED   (1)
 
#define RGB_LED2_ENABLED   (1)
 
#define RGB_LED3_ENABLED   (1)
 
#define RGB_LED4_ENABLED   (1)
 
#define RGB_LED_ADDR   (0x04)
 
#define RGB_LED_EN_BIT   (0x00)
 
#define RGB_LED1_EN_BIT   (0x07)
 
#define RGB_LED2_EN_BIT   (0x06)
 
#define RGB_LED3_EN_BIT   (0x05)
 
#define RGB_LED4_EN_BIT   (0x04)
 
UV/Ambient sensor configuration

Connection to the on-board UV/ambient light sensor (Si1133).

#define SI1133_ENABLED   (0)
 
#define SI1133_I2C   I2C_DEV(0)
 
Temperature sensor configuration

Connection to the on-board temperature/humidity sensor (Si7021).

#define SI7021_ENABLED   (1)
 
#define SI7021_I2C   I2C_DEV(0)
 
#define SI70XX_PARAM_I2C_DEV   SI7021_I2C
 
Hall-effect sensor configuration

Connection to the on-board hall-effect sensor (Si7210A).

Available on Rev. A02 boards only.

#define SI7210A_ENABLED   (0)
 
#define SI7210A_I2C   I2C_DEV(0)
 

Functions

void board_init (void)
 Initialize the board (GPIO, sensors, clocks).