Files
esp-idf/components/esp_hal_gpspi/esp32c5/include/soc/spi_pins.h
T
2026-04-10 14:22:17 +08:00

27 lines
751 B
C

/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
// MSPI IOMUX PINs
#define MSPI_FUNC_NUM 0
#define MSPI_IOMUX_PIN_NUM_HD 20
#define MSPI_IOMUX_PIN_NUM_WP 18
#define MSPI_IOMUX_PIN_NUM_CS0 16
#define MSPI_IOMUX_PIN_NUM_CLK 21
#define MSPI_IOMUX_PIN_NUM_MOSI 22
#define MSPI_IOMUX_PIN_NUM_MISO 17
#define MSPI_IOMUX_PIN_NUM_CS1 15
// GPSPI2 IOMUX PINs
#define SPI2_FUNC_NUM_QUAD 2
#define SPI2_IOMUX_PIN_NUM_MISO 2
#define SPI2_IOMUX_PIN_NUM_HD 4
#define SPI2_IOMUX_PIN_NUM_WP 5
#define SPI2_IOMUX_PIN_NUM_CLK 6
#define SPI2_IOMUX_PIN_NUM_MOSI 7
#define SPI2_IOMUX_PIN_NUM_CS 10