All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
board.h File Reference

Board specific configuration for Adafruit ItsyBitsy nRF52840. More...

Detailed Description

Board specific configuration for Adafruit ItsyBitsy nRF52840.

Author
Bruno Chianca bruno.nosp@m.bcf@.nosp@m.gmail.nosp@m..com

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.
 

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.
 

APA102 / DotStar configuration

#define APA102_PARAM_LED_NUMOF   (1)
 
#define APA102_PARAM_DATA_PIN   GPIO_PIN(0, 8)
 
#define APA102_PARAM_CLK_PIN   GPIO_PIN(1, 9)
 

Button pin configuration

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

Macro Definition Documentation

◆ APA102_PARAM_CLK_PIN

#define APA102_PARAM_CLK_PIN   GPIO_PIN(1, 9)

Definition at line 59 of file board.h.

◆ APA102_PARAM_DATA_PIN

#define APA102_PARAM_DATA_PIN   GPIO_PIN(0, 8)

Definition at line 58 of file board.h.

◆ APA102_PARAM_LED_NUMOF

#define APA102_PARAM_LED_NUMOF   (1)

Definition at line 57 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

The GPIO pin mode of the button labelled SW1.

Definition at line 69 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(0, 29)

The button labelled SW1.

Definition at line 67 of file board.h.

◆ LED0_OFF

#define LED0_OFF   gpio_set(LED0_PIN)

Disable LD1.

Definition at line 47 of file board.h.

◆ LED0_ON

#define LED0_ON   gpio_clear(LED0_PIN)

Enable LD1.

Definition at line 45 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 49 of file board.h.