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 board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Xtimer configuration

The timer runs at 250 kHz to increase accuracy, or at 32.768 kHz if LETIMER is used.

#define XTIMER_DEV   (TIMER_DEV(0))
 
#define XTIMER_HZ   (250000UL)
 
#define XTIMER_WIDTH   (16)
 
#define XTIMER_CHAN   (0)
 

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)
 

Core temperature sensor configuration

Connection to the on-chip temperature sensor.

#define CORETEMP_ADC   ADC_LINE(0)
 

Environmental sensors configuration

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

#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_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_I2C   I2C_DEV(0)
 
#define CCS811_PIC_ADDR   (0x03)
 
#define CCS811_PIC_EN_BIT   (0x00)
 
#define CCS811_PIC_WAKE_BIT   (0x01)
 
#define CCS811_PARAM_I2C_DEV   CCS811_I2C
 

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_I2C   I2C_DEV(0)
 
#define SI70XX_PARAM_I2C_DEV   SI7021_I2C
 

Hall-effect sensor configuration

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

Available on Rev. A02 boards only.

#define SI7210_ENABLED   0
 
#define SI7210_I2C   I2C_DEV(0)