mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
114 lines
3.0 KiB
C
114 lines
3.0 KiB
C
/*
|
|
* Copyright (C) 2023 Gunar Schorcht
|
|
*
|
|
* 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_esp32s3_wt32_sc01_plus
|
|
* @brief Peripheral configurations for ESP32-S3 WT32-SC01 Plus boards
|
|
* @{
|
|
*
|
|
* The peripheral configurations in this file are for the
|
|
* ESP32-S3 WT32-SC01 Plus.
|
|
*
|
|
* Any modifications required for specific applications
|
|
* can be overridden by \ref esp32_application_specific_configurations
|
|
* "application-specific board configuration".
|
|
*
|
|
* For detailed information about the peripheral configuration for ESP32-S3
|
|
* boards, see section \ref esp32_peripherals "Common Peripherals".
|
|
*
|
|
* @note
|
|
* Most definitions can be overridden by an \ref esp32_application_specific_configurations
|
|
* "application-specific board configuration" if necessary.
|
|
*
|
|
* @file
|
|
* @author Gunar Schorcht <gunar@schorcht.net>
|
|
*/
|
|
|
|
#ifndef PERIPH_CONF_H
|
|
#define PERIPH_CONF_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @name I2C configuration
|
|
*
|
|
* I2C_DEV(0) is used for the FT6336 touch panel.
|
|
*
|
|
* @note The GPIOs listed in the configuration are only initialized as I2C
|
|
* signals when module `periph_i2c` is used. Otherwise they are not
|
|
* allocated and can be used for other purposes.
|
|
*
|
|
* @{
|
|
*/
|
|
#ifndef I2C0_SPEED
|
|
#define I2C0_SPEED I2C_SPEED_FAST /**< I2C bus speed of I2C_DEV(0) */
|
|
#endif
|
|
#ifndef I2C0_SCL
|
|
#define I2C0_SCL GPIO5 /**< SCL signal of I2C_DEV(0) */
|
|
#endif
|
|
#ifndef I2C0_SDA
|
|
#define I2C0_SDA GPIO6 /**< SDA signal of I2C_DEV(0) */
|
|
#endif
|
|
/** @} */
|
|
|
|
/**
|
|
* @name SPI configuration
|
|
*
|
|
* SPI_DEV(0) is used for the SPI SD Card.
|
|
*
|
|
* @note The GPIOs listed in the configuration are first initialized as SPI
|
|
* signals when the corresponding SPI interface is used for the first
|
|
* time by either calling the `spi_init_cs` function or the `spi_acquire`
|
|
* function. Otherwise they are not allocated as SPI signals before and
|
|
* can be used for other purposes as long as the SPI interface is not
|
|
* used.
|
|
* @{
|
|
*/
|
|
#ifndef SPI0_CTRL
|
|
#define SPI0_CTRL SPI2_HOST /**< FSPI is used as SPI_DEV(0) */
|
|
#endif
|
|
#ifndef SPI0_SCK
|
|
#define SPI0_SCK GPIO39 /**< FSPI SCK (pin FSPICLK) */
|
|
#endif
|
|
#ifndef SPI0_MISO
|
|
#define SPI0_MISO GPIO38 /**< FSPI MISO (pin FSPIQ) */
|
|
#endif
|
|
#ifndef SPI0_MOSI
|
|
#define SPI0_MOSI GPIO40 /**< FSPI MOSI (pin FSPID) */
|
|
#endif
|
|
#ifndef SPI0_CS0
|
|
#define SPI0_CS0 GPIO41 /**< FSPI CS0 (pin FSPICS0) */
|
|
#endif
|
|
/** @} */
|
|
|
|
/**
|
|
* @name UART configuration
|
|
*
|
|
* UART_DEV(0) is available at the PMOD2 connector.
|
|
*
|
|
* @{
|
|
*/
|
|
#define UART0_TXD GPIO43 /**< direct I/O pin for UART_DEV(0) TxD, can't be changed */
|
|
#define UART0_RXD GPIO44 /**< direct I/O pin for UART_DEV(0) RxD, can't be changed */
|
|
|
|
/** @} */
|
|
|
|
#ifdef __cplusplus
|
|
} /* end extern "C" */
|
|
#endif
|
|
|
|
/* include common peripheral definitions as last step */
|
|
#include "periph_conf_common.h"
|
|
|
|
#endif /* PERIPH_CONF_H */
|
|
/** @} */
|