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

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

Detailed Description

Board specific configuration for the Arduino Nano 33 BLE.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

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)
 

Macro Definition Documentation

◆ 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.