mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(sdio_slave): align buffer size checks with descriptor limits
Define per-target SDIO slave descriptor buffer limits in the LL layer and validate queued send buffers against the 4-byte aligned effective maximum. Update the public docs to describe the chip-dependent limit instead of hardcoding 4092 bytes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -66,6 +66,9 @@ typedef struct sdio_slave_ll_desc_s {
|
||||
};
|
||||
} sdio_slave_ll_desc_t;
|
||||
|
||||
/* Maximum buffer size that a single SDIO slave DMA descriptor can point to. */
|
||||
#define SDIO_SLAVE_LL_DMA_DESC_MAX_BUF_SIZE ((1 << 12) - 1)
|
||||
|
||||
/// Mask of general purpose interrupts sending from the host.
|
||||
typedef enum {
|
||||
SDIO_SLAVE_LL_SLVINT_0 = BIT(0), ///< General purpose interrupt bit 0.
|
||||
|
||||
@@ -66,6 +66,9 @@ typedef struct sdio_slave_ll_desc_s {
|
||||
};
|
||||
} sdio_slave_ll_desc_t;
|
||||
|
||||
/* Maximum buffer size that a single SDIO slave DMA descriptor can point to. */
|
||||
#define SDIO_SLAVE_LL_DMA_DESC_MAX_BUF_SIZE ((1 << 14) - 1)
|
||||
|
||||
/// Mask of general purpose interrupts sending from the host.
|
||||
typedef enum {
|
||||
SDIO_SLAVE_LL_SLVINT_0 = BIT(0), ///< General purpose interrupt bit 0.
|
||||
|
||||
Reference in New Issue
Block a user