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-22 23:24:39 +08:00
co-authored by Cursor
parent b732ab02a4
commit b26d612698
6 changed files with 16 additions and 5 deletions
@@ -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.