Loading...
Searching...
No Matches
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.

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)
 

Macro Definition Documentation

◆ BMP280_I2C

#define BMP280_I2C   I2C_DEV(0)

Definition at line 105 of file board.h.

◆ BMX280_PARAM_I2C_DEV

#define BMX280_PARAM_I2C_DEV   BMP280_I2C

Definition at line 107 of file board.h.

◆ CCS811_I2C

#define CCS811_I2C   I2C_DEV(0)

Definition at line 116 of file board.h.

◆ CCS811_PARAM_I2C_DEV

#define CCS811_PARAM_I2C_DEV   CCS811_I2C

Definition at line 122 of file board.h.

◆ CCS811_PIC_ADDR

#define CCS811_PIC_ADDR   (0x03)

Definition at line 118 of file board.h.

◆ CCS811_PIC_EN_BIT

#define CCS811_PIC_EN_BIT   (0x00)

Definition at line 119 of file board.h.

◆ CCS811_PIC_WAKE_BIT

#define CCS811_PIC_WAKE_BIT   (0x01)

Definition at line 120 of file board.h.

◆ CORETEMP_ADC

#define CORETEMP_ADC   ADC_LINE(0)

Definition at line 86 of file board.h.

◆ ENV_SENSE_PIC_ADDR

#define ENV_SENSE_PIC_ADDR   (0x01)

Definition at line 95 of file board.h.

◆ ENV_SENSE_PIC_BIT

#define ENV_SENSE_PIC_BIT   (0)

Definition at line 96 of file board.h.

◆ ICM20648_ENABLED

#define ICM20648_ENABLED   0

Definition at line 132 of file board.h.

◆ ICM20648_PIC_ADDR

#define ICM20648_PIC_ADDR   (0x00)

Definition at line 135 of file board.h.

◆ ICM20648_PIC_EN_BIT

#define ICM20648_PIC_EN_BIT   (0x00)

Definition at line 136 of file board.h.

◆ ICM20648_SPI

#define ICM20648_SPI   SPI_DEV(0)

Definition at line 134 of file board.h.

◆ LED0_OFF

#define LED0_OFF   gpio_clear(LED0_PIN)

Definition at line 73 of file board.h.

◆ LED0_ON

#define LED0_ON   gpio_set(LED0_PIN)

Definition at line 72 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PD, 12)

Definition at line 64 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   gpio_toggle(LED0_PIN)

Definition at line 74 of file board.h.

◆ LED1_OFF

#define LED1_OFF   gpio_clear(LED1_PIN)

Definition at line 76 of file board.h.

◆ LED1_ON

#define LED1_ON   gpio_set(LED1_PIN)

Definition at line 75 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PD, 11)

Definition at line 65 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Definition at line 77 of file board.h.

◆ PB0_PIN

#define PB0_PIN   GPIO_PIN(PD, 14)

Definition at line 56 of file board.h.

◆ PB1_PIN

#define PB1_PIN   GPIO_PIN(PD, 15)

Definition at line 57 of file board.h.

◆ PIC_I2C

#define PIC_I2C   I2C_DEV(0)

Definition at line 146 of file board.h.

◆ PIC_I2C_ADDR

#define PIC_I2C_ADDR   (0x48)

Definition at line 147 of file board.h.

◆ PIC_INT_WAKE_PIN

#define PIC_INT_WAKE_PIN   GPIO_PIN(PD, 10)

Definition at line 145 of file board.h.

◆ RGB_LED1_EN_BIT

#define RGB_LED1_EN_BIT   (0x07)

Definition at line 170 of file board.h.

◆ RGB_LED1_ENABLED

#define RGB_LED1_ENABLED   1

Definition at line 157 of file board.h.

◆ RGB_LED2_EN_BIT

#define RGB_LED2_EN_BIT   (0x06)

Definition at line 171 of file board.h.

◆ RGB_LED2_ENABLED

#define RGB_LED2_ENABLED   1

Definition at line 160 of file board.h.

◆ RGB_LED3_EN_BIT

#define RGB_LED3_EN_BIT   (0x05)

Definition at line 172 of file board.h.

◆ RGB_LED3_ENABLED

#define RGB_LED3_ENABLED   1

Definition at line 163 of file board.h.

◆ RGB_LED4_EN_BIT

#define RGB_LED4_EN_BIT   (0x04)

Definition at line 173 of file board.h.

◆ RGB_LED4_ENABLED

#define RGB_LED4_ENABLED   1

Definition at line 166 of file board.h.

◆ RGB_LED_ADDR

#define RGB_LED_ADDR   (0x04)

Definition at line 168 of file board.h.

◆ RGB_LED_EN_BIT

#define RGB_LED_EN_BIT   (0x00)

Definition at line 169 of file board.h.

◆ SI1133_ENABLED

#define SI1133_ENABLED   0

Definition at line 183 of file board.h.

◆ SI1133_I2C

#define SI1133_I2C   I2C_DEV(0)

Definition at line 185 of file board.h.

◆ SI7021_I2C

#define SI7021_I2C   I2C_DEV(0)

Definition at line 194 of file board.h.

◆ SI70XX_PARAM_I2C_DEV

#define SI70XX_PARAM_I2C_DEV   SI7021_I2C

Definition at line 196 of file board.h.

◆ SI7210_ENABLED

#define SI7210_ENABLED   0

Definition at line 207 of file board.h.

◆ SI7210_I2C

#define SI7210_I2C   I2C_DEV(0)

Definition at line 209 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 49 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   (TIMER_DEV(0))

Definition at line 45 of file board.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (250000UL)

Definition at line 46 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 47 of file board.h.