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 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 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)