essl_sdio: support communicating with esp32c6 sdio slave
This commit is contained in:
parent
8b76019808
commit
9b935ddd10
|
@ -12,3 +12,7 @@
|
|||
essl_sdio_def_t ESSL_SDIO_DEF_ESP32 = {
|
||||
.new_packet_intr_mask = BIT(23),
|
||||
};
|
||||
|
||||
essl_sdio_def_t ESSL_SDIO_DEF_ESP32C6 = {
|
||||
.new_packet_intr_mask = BIT(23),
|
||||
};
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "driver/sdmmc_host.h"
|
||||
|
||||
#include "esp_serial_slave_link/essl.h"
|
||||
#include "essl_sdio_defs.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -24,13 +25,6 @@ typedef struct {
|
|||
int recv_buffer_size; ///< The pre-negotiated recv buffer size used by both the host and the slave.
|
||||
} essl_sdio_config_t;
|
||||
|
||||
typedef struct {
|
||||
//interrupts
|
||||
uint32_t new_packet_intr_mask;
|
||||
} essl_sdio_def_t;
|
||||
|
||||
/// Definitions of ESP32 SDIO Slave hardware
|
||||
extern essl_sdio_def_t ESSL_SDIO_DEF_ESP32;
|
||||
|
||||
/**
|
||||
* @brief Initialize the ESSL SDIO device and get its handle.
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
/**
|
||||
* This file contains SDIO Slave hardware specific requirements
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
//interrupts
|
||||
uint32_t new_packet_intr_mask;
|
||||
} essl_sdio_def_t;
|
||||
|
||||
/// Definitions of ESP32 SDIO Slave hardware
|
||||
extern essl_sdio_def_t ESSL_SDIO_DEF_ESP32;
|
||||
/// Definitions of ESP32C6 SDIO Slave hardware
|
||||
extern essl_sdio_def_t ESSL_SDIO_DEF_ESP32C6;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue