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 "mtd.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.

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 

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   mtd0
 
mtd_dev_tmtd0
 

Xtimer configuration

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