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

Board specific configuration for the Arduino Nano 33 BLE sense. More...

Detailed Description

Board specific configuration for the Arduino Nano 33 BLE sense.

Author
Méwen Berthelot berth.nosp@m.elot.nosp@m.mewen.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition in file board.h.

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

LEDs pin configuration

#define LED0_PIN   GPIO_PIN(0, 13)
 
#define LED0_MASK   (1 << 13)
 
#define LED0_ON   (NRF_P0->OUTCLR = LED0_MASK)
 
#define LED0_OFF   (NRF_P0->OUTSET = LED0_MASK)
 
#define LED0_TOGGLE   (NRF_P0->OUT ^= LED0_MASK)
 
#define LED1_PIN   GPIO_PIN(0, 24)
 
#define LED1_MASK   (1 << 24)
 
#define LED1_ON   (NRF_P0->OUTCLR = LED1_MASK)
 
#define LED1_OFF   (NRF_P0->OUTSET = LED1_MASK)
 
#define LED1_TOGGLE   (NRF_P0->OUT ^= LED1_MASK)
 
#define LED2_PIN   GPIO_PIN(0, 16)
 
#define LED2_MASK   (1 << 16)
 
#define LED2_ON   (NRF_P0->OUTCLR = LED2_MASK)
 
#define LED2_OFF   (NRF_P0->OUTSET = LED2_MASK)
 
#define LED2_TOGGLE   (NRF_P0->OUT ^= LED2_MASK)
 
#define LED3_PIN   GPIO_PIN(0, 6)
 
#define LED3_MASK   (1 << 6)
 
#define LED3_ON   (NRF_P0->OUTCLR = LED3_MASK)
 
#define LED3_OFF   (NRF_P0->OUTSET = LED3_MASK)
 
#define LED3_TOGGLE   (NRF_P0->OUT ^= LED3_MASK)
 
#define LED4_PIN   GPIO_PIN(1, 9)
 
#define LED4_MASK   (1 << 9)
 
#define LED4_ON   (NRF_P1->OUTCLR = LED4_MASK)
 
#define LED4_OFF   (NRF_P1->OUTSET = LED4_MASK)
 
#define LED4_TOGGLE   (NRF_P1->OUT ^= LED4_MASK)
 

Internal powering pin definition

#define VDD   GPIO_PIN(0, 22)
 Internal VDD pin.
 

Internal I2C pins definition

#define SCL1   GPIO_PIN(0, 15)
 Internal SCL I2C pin.
 
#define SDA1   GPIO_PIN(0, 14)
 Internal SDA I2C pin.
 

HTS221 sensor configuration

#define HTS221_PARAM_I2C   I2C_DEV(1)
 I2C device.
 

LPS22HB sensor configuration

#define LPSXXX_PARAM_ADDR   (0x5c)
 I2C address.
 
#define LPSXXX_PARAM_I2C   I2C_DEV(1)
 I2C device.
 

APDS9960 sensor configuration

#define APDS99XX_PARAM_DEV   I2C_DEV(1)
 I2C device.
 
#define APDS99XX_PARAM_INT_PIN   GPIO_PIN(0, 19)
 Interrupt pin.
 

Macro Definition Documentation

◆ APDS99XX_PARAM_DEV

#define APDS99XX_PARAM_DEV   I2C_DEV(1)

I2C device.

Definition at line 98 of file board.h.

◆ APDS99XX_PARAM_INT_PIN

#define APDS99XX_PARAM_INT_PIN   GPIO_PIN(0, 19)

Interrupt pin.

Definition at line 99 of file board.h.

◆ HTS221_PARAM_I2C

#define HTS221_PARAM_I2C   I2C_DEV(1)

I2C device.

Definition at line 83 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 13)

Definition at line 34 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (NRF_P0->OUTSET = LED0_MASK)

Definition at line 36 of file board.h.

◆ LED0_ON

#define LED0_ON   (NRF_P0->OUTCLR = LED0_MASK)

Definition at line 35 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(0, 13)

Definition at line 33 of file board.h.

◆ LED0_TOGGLE

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

Definition at line 37 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 24)

Definition at line 40 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (NRF_P0->OUTSET = LED1_MASK)

Definition at line 42 of file board.h.

◆ LED1_ON

#define LED1_ON   (NRF_P0->OUTCLR = LED1_MASK)

Definition at line 41 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(0, 24)

Definition at line 39 of file board.h.

◆ LED1_TOGGLE

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

Definition at line 43 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (1 << 16)

Definition at line 46 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (NRF_P0->OUTSET = LED2_MASK)

Definition at line 48 of file board.h.

◆ LED2_ON

#define LED2_ON   (NRF_P0->OUTCLR = LED2_MASK)

Definition at line 47 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(0, 16)

Definition at line 45 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (NRF_P0->OUT ^= LED2_MASK)

Definition at line 49 of file board.h.

◆ LED3_MASK

#define LED3_MASK   (1 << 6)

Definition at line 52 of file board.h.

◆ LED3_OFF

#define LED3_OFF   (NRF_P0->OUTSET = LED3_MASK)

Definition at line 54 of file board.h.

◆ LED3_ON

#define LED3_ON   (NRF_P0->OUTCLR = LED3_MASK)

Definition at line 53 of file board.h.

◆ LED3_PIN

#define LED3_PIN   GPIO_PIN(0, 6)

Definition at line 51 of file board.h.

◆ LED3_TOGGLE

#define LED3_TOGGLE   (NRF_P0->OUT ^= LED3_MASK)

Definition at line 55 of file board.h.

◆ LED4_MASK

#define LED4_MASK   (1 << 9)

Definition at line 58 of file board.h.

◆ LED4_OFF

#define LED4_OFF   (NRF_P1->OUTSET = LED4_MASK)

Definition at line 60 of file board.h.

◆ LED4_ON

#define LED4_ON   (NRF_P1->OUTCLR = LED4_MASK)

Definition at line 59 of file board.h.

◆ LED4_PIN

#define LED4_PIN   GPIO_PIN(1, 9)

Definition at line 57 of file board.h.

◆ LED4_TOGGLE

#define LED4_TOGGLE   (NRF_P1->OUT ^= LED4_MASK)

Definition at line 61 of file board.h.

◆ LPSXXX_PARAM_ADDR

#define LPSXXX_PARAM_ADDR   (0x5c)

I2C address.

Definition at line 90 of file board.h.

◆ LPSXXX_PARAM_I2C

#define LPSXXX_PARAM_I2C   I2C_DEV(1)

I2C device.

Definition at line 91 of file board.h.

◆ SCL1

#define SCL1   GPIO_PIN(0, 15)

Internal SCL I2C pin.

Definition at line 75 of file board.h.

◆ SDA1

#define SDA1   GPIO_PIN(0, 14)

Internal SDA I2C pin.

Definition at line 76 of file board.h.

◆ VDD

#define VDD   GPIO_PIN(0, 22)

Internal VDD pin.

Definition at line 68 of file board.h.