/* * Copyright (C) 2021 Franz Freitag, Justus Krebs, Nick Weiler * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup boards_seeeduino_xiao * @brief Support for the Seeeduino XIAO board. * @{ * * @file * @brief Board specific definitions for the Seeeduino XIAO * * @author Franz Freitag * @author Justus Krebs * @author Nick Weiler */ #ifndef BOARD_H #define BOARD_H #include "cpu.h" #include "periph_conf.h" #include "periph/gpio.h" #ifdef __cplusplus extern "C" { #endif /** * @name 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) /** @} */ /** * @name USB configuration * @{ */ #define INTERNAL_PERIPHERAL_VID (0x239A) #define INTERNAL_PERIPHERAL_PID (0x0057) /** @} */ #ifdef __cplusplus } #endif #endif /* BOARD_H */ /** @} */