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:
morris
2026-06-25 11:39:41 +08:00
co-authored by Cursor
parent 315e812d5b
commit 52e73f3cd5
8 changed files with 22 additions and 5 deletions
@@ -67,6 +67,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.