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

Board specific definitions for the Adafruit Metro M4 Express. More...

Detailed Description

Board specific definitions for the Adafruit Metro M4 Express.

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@pos.nosp@m.teo..nosp@m.net

Definition in file board.h.

#include "arduino_iomap.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, 16)
 User LED red (D13)
 
#define LED1_PIN   GPIO_PIN(PA, 27)
 TX LED yellow.
 
#define LED2_PIN   GPIO_PIN(PB, 6)
 RX LED yellow.
 
#define LED0_PORT   PORT->Group[PA]
 Port of User LED red (D13)
 
#define LED0_MASK   (1U << 16)
 Mask of User LED red (D13)
 
#define LED1_PORT   PORT->Group[PA]
 Port of TX LED yellow.
 
#define LED1_MASK   (1U << 27)
 Mask of TX LED yellow.
 
#define LED2_PORT   PORT->Group[PB]
 Port of RX LED yellow.
 
#define LED2_MASK   (1U << 6)
 Mask of RX LED yellow.
 
#define LED0_ON   (LED0_PORT.OUTSET.reg = LED0_MASK)
 Switch on User LED red (D13)
 
#define LED0_OFF   (LED0_PORT.OUTCLR.reg = LED0_MASK)
 Switch off User LED red (D13)
 
#define LED0_TOGGLE   (LED0_PORT.OUTTGL.reg = LED0_MASK)
 Toggle User LED red (D13)
 
#define LED1_ON   (LED1_PORT.OUTCLR.reg = LED1_MASK)
 Switch on TX LED yellow.
 
#define LED1_OFF   (LED1_PORT.OUTSET.reg = LED1_MASK)
 Switch off TX LED yellow.
 
#define LED1_TOGGLE   (LED1_PORT.OUTTGL.reg = LED1_MASK)
 Toggle TX LED yellow.
 
#define LED2_ON   (LED2_PORT.OUTCLR.reg = LED2_MASK)
 Switch on RX LED yellow.
 
#define LED2_OFF   (LED2_PORT.OUTSET.reg = LED2_MASK)
 Switch off RX LED yellow.
 
#define LED2_TOGGLE   (LED2_PORT.OUTTGL.reg = LED2_MASK)
 Toggle User RX LED yellow.
 
#define WS281X_PARAM_PIN   GPIO_PIN(PB, 22)
 GPIO pin connected to the data pin.
 
#define WS281X_PARAM_NUMOF   (1U)
 Number of LEDs chained.
 

MTD configuration

#define MTD_0   mtd_dev_get(0)
 MTD device for the 8 MiB QSPI Flash.
 

Macro Definition Documentation

◆ LED0_MASK

#define LED0_MASK   (1U << 16)

Mask of User LED red (D13)

Definition at line 40 of file board.h.

◆ LED0_OFF

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

Switch off User LED red (D13)

Definition at line 47 of file board.h.

◆ LED0_ON

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

Switch on User LED red (D13)

Definition at line 46 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PA, 16)

User LED red (D13)

Definition at line 35 of file board.h.

◆ LED0_PORT

#define LED0_PORT   PORT->Group[PA]

Port of User LED red (D13)

Definition at line 39 of file board.h.

◆ LED0_TOGGLE

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

Toggle User LED red (D13)

Definition at line 48 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1U << 27)

Mask of TX LED yellow.

Definition at line 42 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (LED1_PORT.OUTSET.reg = LED1_MASK)

Switch off TX LED yellow.

Definition at line 51 of file board.h.

◆ LED1_ON

#define LED1_ON   (LED1_PORT.OUTCLR.reg = LED1_MASK)

Switch on TX LED yellow.

Definition at line 50 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PA, 27)

TX LED yellow.

Definition at line 36 of file board.h.

◆ LED1_PORT

#define LED1_PORT   PORT->Group[PA]

Port of TX LED yellow.

Definition at line 41 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (LED1_PORT.OUTTGL.reg = LED1_MASK)

Toggle TX LED yellow.

Definition at line 52 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (1U << 6)

Mask of RX LED yellow.

Definition at line 44 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (LED2_PORT.OUTSET.reg = LED2_MASK)

Switch off RX LED yellow.

Definition at line 55 of file board.h.

◆ LED2_ON

#define LED2_ON   (LED2_PORT.OUTCLR.reg = LED2_MASK)

Switch on RX LED yellow.

Definition at line 54 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(PB, 6)

RX LED yellow.

Definition at line 37 of file board.h.

◆ LED2_PORT

#define LED2_PORT   PORT->Group[PB]

Port of RX LED yellow.

Definition at line 43 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (LED2_PORT.OUTTGL.reg = LED2_MASK)

Toggle User RX LED yellow.

Definition at line 56 of file board.h.

◆ MTD_0

#define MTD_0   mtd_dev_get(0)

MTD device for the 8 MiB QSPI Flash.

Definition at line 70 of file board.h.

◆ WS281X_PARAM_NUMOF

#define WS281X_PARAM_NUMOF   (1U)

Number of LEDs chained.

Definition at line 62 of file board.h.

◆ WS281X_PARAM_PIN

#define WS281X_PARAM_PIN   GPIO_PIN(PB, 22)

GPIO pin connected to the data pin.

Definition at line 59 of file board.h.