1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-17 18:43:50 +01:00
2025-11-07 19:26:07 +01:00

85 lines
1.8 KiB
C

/*
* SPDX-FileCopyrightText: 2024 Isikcan 'Jon' Yilmaz
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup boards_seeedstudio-xiao-esp32s3
* @brief Board definitions for Seeed Studio Xiao ESP32S3 board
* @{
*
* The board definitions in this file are valid for the Seeed Studio Xiao ESP32S3 board.
*
* Any modifications required for specific applications
* can be overridden by \ref esp32_application_specific_configurations
* "application-specific board configuration".
*
* @file
* @author Isikcan 'Jon' Yilmaz <can158@gmail.com>
*/
#include <stdint.h>
/**
* @name Button pin definitions
* @{
*/
/**
* @brief Default button GPIO pin definition
*
* Seeed Studio Xiao ESP32S3 boards have a BOOT button connected to GPIO0, which can be
* used as button during normal operation. Since the GPIO0 pin is pulled up,
* the button signal is inverted, i.e., pressing the button will give a
* low signal.
*/
#define BTN0_PIN GPIO0
/**
* @brief Default button GPIO mode definition
*
* Since the GPIO of the button is pulled up with an external resistor, the
* mode for the GPIO pin has to be GPIO_IN.
*/
#define BTN0_MODE GPIO_IN
/**
* @brief Default interrupt flank definition for the button GPIO
*/
#ifndef BTN0_INT_FLANK
# define BTN0_INT_FLANK GPIO_FALLING
#endif
/**
* @brief Definition for compatibility with previous versions
*/
#define BUTTON0_PIN BTN0_PIN
/** @} */
/**
* @name LED (on-board) configuration
*
* The Seeed Studio Xiao ESP32S3 board has one red LED connected to GPIO21.
* @{
*/
/** @} */
#ifndef LED0_PIN
# define LED0_PIN GPIO21
# define LED0_ACTIVE (0)
#endif
/* include common board definitions as last step */
#include "board_common.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* end extern "C" */
#endif
/** @} */