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

Board specific configuration for the nRF52840-Dongle. More...

Detailed Description

Board specific configuration for the nRF52840-Dongle.

Author
Christian Amsüss chrys.nosp@m.n@fs.nosp@m.fe.or.nosp@m.g

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(0, 6)
 The LED labelled LD1.
 
#define LED1_PIN   GPIO_PIN(0, 8)
 The red channel of the LED labelled LD2.
 
#define LED2_PIN   GPIO_PIN(1, 9)
 The green channel of the LED labelled LD2.
 
#define LED3_PIN   GPIO_PIN(0, 12)
 The blue channel of the LED labelled LD2.
 

LED access macros

#define LED0_ON   gpio_clear(LED0_PIN)
 Enable LD1.
 
#define LED0_OFF   gpio_set(LED0_PIN)
 Disable LD1.
 
#define LED0_TOGGLE   gpio_toggle(LED0_PIN)
 Toggle LD1.
 
#define LED1_ON   gpio_clear(LED1_PIN)
 Enable LD2's red channel.
 
#define LED1_OFF   gpio_set(LED1_PIN)
 Disable LD2's red channel.
 
#define LED1_TOGGLE   gpio_toggle(LED1_PIN)
 Toggle LD2's red channel.
 
#define LED2_ON   gpio_clear(LED2_PIN)
 Enable LD2's green channel.
 
#define LED2_OFF   gpio_set(LED2_PIN)
 Disable LD2's green channel.
 
#define LED2_TOGGLE   gpio_toggle(LED2_PIN)
 Toggle LD2's green channel.
 
#define LED3_ON   gpio_clear(LED3_PIN)
 Enable LD2's blue channel.
 
#define LED3_OFF   gpio_set(LED3_PIN)
 Disable LD2's blue channel.
 
#define LED3_TOGGLE   gpio_toggle(LED3_PIN)
 Toggle LD2's blue channel.
 

Button pin configuration

#define BTN0_PIN   GPIO_PIN(1, 6)
 The button labelled SW1.
 
#define BTN0_MODE   GPIO_IN_PU
 The GPIO pin mode of the button labelled SW1.
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

The GPIO pin mode of the button labelled SW1.

Definition at line 88 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(1, 6)

The button labelled SW1.

Definition at line 86 of file board.h.

◆ LED0_OFF

#define LED0_OFF   gpio_set(LED0_PIN)

Disable LD1.

Definition at line 54 of file board.h.

◆ LED0_ON

#define LED0_ON   gpio_clear(LED0_PIN)

Enable LD1.

Definition at line 52 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(0, 6)

The LED labelled LD1.

Definition at line 35 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   gpio_toggle(LED0_PIN)

Toggle LD1.

Definition at line 56 of file board.h.

◆ LED1_OFF

#define LED1_OFF   gpio_set(LED1_PIN)

Disable LD2's red channel.

Definition at line 61 of file board.h.

◆ LED1_ON

#define LED1_ON   gpio_clear(LED1_PIN)

Enable LD2's red channel.

Definition at line 59 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(0, 8)

The red channel of the LED labelled LD2.

Definition at line 38 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Toggle LD2's red channel.

Definition at line 63 of file board.h.

◆ LED2_OFF

#define LED2_OFF   gpio_set(LED2_PIN)

Disable LD2's green channel.

Definition at line 68 of file board.h.

◆ LED2_ON

#define LED2_ON   gpio_clear(LED2_PIN)

Enable LD2's green channel.

Definition at line 66 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(1, 9)

The green channel of the LED labelled LD2.

Definition at line 40 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   gpio_toggle(LED2_PIN)

Toggle LD2's green channel.

Definition at line 70 of file board.h.

◆ LED3_OFF

#define LED3_OFF   gpio_set(LED3_PIN)

Disable LD2's blue channel.

Definition at line 75 of file board.h.

◆ LED3_ON

#define LED3_ON   gpio_clear(LED3_PIN)

Enable LD2's blue channel.

Definition at line 73 of file board.h.

◆ LED3_PIN

#define LED3_PIN   GPIO_PIN(0, 12)

The blue channel of the LED labelled LD2.

Definition at line 42 of file board.h.

◆ LED3_TOGGLE

#define LED3_TOGGLE   gpio_toggle(LED3_PIN)

Toggle LD2's blue channel.

Definition at line 77 of file board.h.