Loading...
Searching...
No Matches
board.h File Reference

Board specific configuration for the Adafruit Feather nRF52840 Sense. More...

Detailed Description

Board specific configuration for the Adafruit Feather nRF52840 Sense.

Author
Martine S. Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de
Michel Rottleuthner miche.nosp@m.l.ro.nosp@m.ttleu.nosp@m.thne.nosp@m.r@haw.nosp@m.-ham.nosp@m.burg..nosp@m.de

Definition in file board.h.

#include "cpu.h"
#include "board_common.h"
#include "periph/gpio.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.

LED pin configuration

#define LED0_PIN   GPIO_PIN(1, 9)
 
#define LED1_PIN   GPIO_PIN(1, 10)
 
#define LED_PORT   (NRF_P1)
 
#define LED0_MASK   (1 << 9)
 
#define LED1_MASK   (1 << 10)
 
#define LED_MASK   (LED0_MASK | LED1_MASK)
 
#define LED0_ON   (LED_PORT->OUTSET = LED0_MASK)
 
#define LED0_OFF   (LED_PORT->OUTCLR = LED0_MASK)
 
#define LED0_TOGGLE   (LED_PORT->OUT ^= LED0_MASK)
 
#define LED1_ON   (LED_PORT->OUTSET = LED1_MASK)
 
#define LED1_OFF   (LED_PORT->OUTCLR = LED1_MASK)
 
#define LED1_TOGGLE   (LED_PORT->OUT ^= LED1_MASK)
 

Button pin configuration

#define BTN0_PIN   GPIO_PIN(1, 2)
 
#define BTN0_MODE   GPIO_IN_PU
 

BMP280 sensor configuration

#define BMX280_PARAM_I2C_DEV   I2C_DEV(0)
 I2C device.
 

LIS3MDL 3-axis magnetometer

#define LIS3MDL_PARAM_I2C   I2C_DEV(0)
 I2C device.
 
#define LIS3MDL_PARAM_ADDR   (0x1C)
 I2C address.
 

SHT30 temperature and humidity sensor

#define SHT3X_PARAM_I2C_DEV   I2C_DEV(0)
 I2C device.
 
#define SHT3X_PARAM_I2C_ADDR   (SHT3X_I2C_ADDR_1)
 I2C address.
 

LSM6DSXX accelerometer sensor configuration

#define LSM6DSXX_PARAM_I2C   I2C_DEV(0)
 
#define LSM6DSXX_PARAM_ADDR   (0x6A)
 

WS281x RGB LEDs configuration

#define WS281X_PARAM_PIN   GPIO_PIN(0, 16)
 GPIO pin connected to the data pin of the first LED.
 
#define WS281X_PARAM_NUMOF   (1U)
 Number of LEDs chained.
 

Macro Definition Documentation

◆ BMX280_PARAM_I2C_DEV

#define BMX280_PARAM_I2C_DEV   I2C_DEV(0)

I2C device.

Definition at line 66 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 59 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(1, 2)

Definition at line 58 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 9)

Definition at line 41 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (LED_PORT->OUTCLR = LED0_MASK)

Definition at line 46 of file board.h.

◆ LED0_ON

#define LED0_ON   (LED_PORT->OUTSET = LED0_MASK)

Definition at line 45 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(1, 9)

Definition at line 37 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED_PORT->OUT ^= LED0_MASK)

Definition at line 47 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 10)

Definition at line 42 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (LED_PORT->OUTCLR = LED1_MASK)

Definition at line 50 of file board.h.

◆ LED1_ON

#define LED1_ON   (LED_PORT->OUTSET = LED1_MASK)

Definition at line 49 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(1, 10)

Definition at line 38 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (LED_PORT->OUT ^= LED1_MASK)

Definition at line 51 of file board.h.

◆ LED_MASK

#define LED_MASK   (LED0_MASK | LED1_MASK)

Definition at line 43 of file board.h.

◆ LED_PORT

#define LED_PORT   (NRF_P1)

Definition at line 40 of file board.h.

◆ LIS3MDL_PARAM_ADDR

#define LIS3MDL_PARAM_ADDR   (0x1C)

I2C address.

Definition at line 74 of file board.h.

◆ LIS3MDL_PARAM_I2C

#define LIS3MDL_PARAM_I2C   I2C_DEV(0)

I2C device.

Definition at line 73 of file board.h.

◆ LSM6DSXX_PARAM_ADDR

#define LSM6DSXX_PARAM_ADDR   (0x6A)

Definition at line 90 of file board.h.

◆ LSM6DSXX_PARAM_I2C

#define LSM6DSXX_PARAM_I2C   I2C_DEV(0)

Definition at line 89 of file board.h.

◆ SHT3X_PARAM_I2C_ADDR

#define SHT3X_PARAM_I2C_ADDR   (SHT3X_I2C_ADDR_1)

I2C address.

Definition at line 82 of file board.h.

◆ SHT3X_PARAM_I2C_DEV

#define SHT3X_PARAM_I2C_DEV   I2C_DEV(0)

I2C device.

Definition at line 81 of file board.h.

◆ WS281X_PARAM_NUMOF

#define WS281X_PARAM_NUMOF   (1U)

Number of LEDs chained.

Definition at line 101 of file board.h.

◆ WS281X_PARAM_PIN

#define WS281X_PARAM_PIN   GPIO_PIN(0, 16)

GPIO pin connected to the data pin of the first LED.

Definition at line 98 of file board.h.