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

Support for the Seeeduino XIAO board. More...

Detailed Description

Support for the Seeeduino XIAO board.

Board specific definitions for the Seeeduino XIAO

Author
Franz Freitag franz.nosp@m..fre.nosp@m.itag@.nosp@m.st.o.nosp@m.vgu.d.nosp@m.e
Justus Krebs justu.nosp@m.s.kr.nosp@m.ebs@s.nosp@m.t.ov.nosp@m.gu.de
Nick Weiler nick..nosp@m.weil.nosp@m.er@st.nosp@m..ovg.nosp@m.u.de

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.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 LED_PORT   PORT->Group[PA]
 
#define LED0_PIN   GPIO_PIN(PA, 18)
 
#define LED0_MASK   (1 << 18)
 
#define LED0_NAME   "LED(BLUE_RX)"
 
#define LED0_OFF   (LED_PORT.OUTSET.reg = LED0_MASK)
 
#define LED0_ON   (LED_PORT.OUTCLR.reg = LED0_MASK)
 
#define LED0_TOGGLE   (LED_PORT.OUTTGL.reg = LED0_MASK)
 
#define LED1_PIN   GPIO_PIN(PA, 19)
 
#define LED1_MASK   (1 << 19)
 
#define LED1_NAME   "LED(BLUE_TX)"
 
#define LED1_OFF   (LED_PORT.OUTSET.reg = LED1_MASK)
 
#define LED1_ON   (LED_PORT.OUTCLR.reg = LED1_MASK)
 
#define LED1_TOGGLE   (LED_PORT.OUTTGL.reg = LED1_MASK)
 
#define LED2_PIN   GPIO_PIN(PA, 17)
 
#define LED2_MASK   (1 << 17)
 
#define LED2_NAME   "LED(YELLOW_USER)"
 
#define LED2_OFF   (LED_PORT.OUTSET.reg = LED2_MASK)
 
#define LED2_ON   (LED_PORT.OUTCLR.reg = LED2_MASK)
 
#define LED2_TOGGLE   (LED_PORT.OUTTGL.reg = LED2_MASK)
 

USB configuration

#define INTERNAL_PERIPHERAL_VID   (0x239A)
 
#define INTERNAL_PERIPHERAL_PID   (0x0057)
 

Macro Definition Documentation

◆ INTERNAL_PERIPHERAL_PID

#define INTERNAL_PERIPHERAL_PID   (0x0057)

Definition at line 69 of file board.h.

◆ INTERNAL_PERIPHERAL_VID

#define INTERNAL_PERIPHERAL_VID   (0x239A)

Definition at line 68 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 18)

Definition at line 40 of file board.h.

◆ LED0_NAME

#define LED0_NAME   "LED(BLUE_RX)"

Definition at line 41 of file board.h.

◆ LED0_OFF

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

Definition at line 43 of file board.h.

◆ LED0_ON

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

Definition at line 44 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PA, 18)

Definition at line 39 of file board.h.

◆ LED0_TOGGLE

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

Definition at line 45 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 19)

Definition at line 48 of file board.h.

◆ LED1_NAME

#define LED1_NAME   "LED(BLUE_TX)"

Definition at line 49 of file board.h.

◆ LED1_OFF

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

Definition at line 51 of file board.h.

◆ LED1_ON

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

Definition at line 52 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PA, 19)

Definition at line 47 of file board.h.

◆ LED1_TOGGLE

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

Definition at line 53 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (1 << 17)

Definition at line 56 of file board.h.

◆ LED2_NAME

#define LED2_NAME   "LED(YELLOW_USER)"

Definition at line 57 of file board.h.

◆ LED2_OFF

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

Definition at line 59 of file board.h.

◆ LED2_ON

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

Definition at line 60 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(PA, 17)

Definition at line 55 of file board.h.

◆ LED2_TOGGLE

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

Definition at line 61 of file board.h.

◆ LED_PORT

#define LED_PORT   PORT->Group[PA]

Definition at line 37 of file board.h.