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

Board specific definitions for the Adafruit ItsyBitsy M4. More...

Detailed Description

Board specific definitions for the Adafruit ItsyBitsy M4.

Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

Definition in file board.h.

#include "cpu.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 definitions and handlers

#define LED0_PIN   GPIO_PIN(PA, 22)
 
#define LED_PORT   PORT->Group[PA]
 
#define LED0_MASK   (1 << 22)
 
#define LED0_ON   (LED_PORT.OUTSET.reg = LED0_MASK)
 
#define LED0_OFF   (LED_PORT.OUTCLR.reg = LED0_MASK)
 
#define LED0_TOGGLE   (LED_PORT.OUTTGL.reg = LED0_MASK)
 

APA102 / DotStar configuration

#define APA102_PARAM_LED_NUMOF   (1)
 
#define APA102_PARAM_DATA_PIN   GPIO_PIN(PB, 3)
 
#define APA102_PARAM_CLK_PIN   GPIO_PIN(PB, 2)
 

MTD configuration

#define MTD_0   mtd_dev_get(0)
 

Xtimer configuration

#define XTIMER_WIDTH   (32)
 
#define XTIMER_HZ   (1000000ul)
 

Macro Definition Documentation

◆ APA102_PARAM_CLK_PIN

#define APA102_PARAM_CLK_PIN   GPIO_PIN(PB, 2)

Definition at line 49 of file board.h.

◆ APA102_PARAM_DATA_PIN

#define APA102_PARAM_DATA_PIN   GPIO_PIN(PB, 3)

Definition at line 48 of file board.h.

◆ APA102_PARAM_LED_NUMOF

#define APA102_PARAM_LED_NUMOF   (1)

Definition at line 47 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 22)

Definition at line 36 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (LED_PORT.OUTCLR.reg = LED0_MASK)

Definition at line 39 of file board.h.

◆ LED0_ON

#define LED0_ON   (LED_PORT.OUTSET.reg = LED0_MASK)

Definition at line 38 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PA, 22)

Definition at line 33 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED_PORT.OUTTGL.reg = LED0_MASK)

Definition at line 40 of file board.h.

◆ LED_PORT

#define LED_PORT   PORT->Group[PA]

Definition at line 35 of file board.h.

◆ MTD_0

#define MTD_0   mtd_dev_get(0)

Definition at line 56 of file board.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (1000000ul)

Definition at line 64 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (32)

Definition at line 63 of file board.h.