unify SPI helper APIs

This commit is contained in:
Sergio R. Caprile committed 2026-04-01 14:11:35 -03:00
1 parent b1c2ffe1a0
commit d4212ab282
18 files changed
+75 -104

No files matched your search

-8
View File
@@ -4,14 +4,6 @@
((defined(MG_ENABLE_DRIVER_CYW) && MG_ENABLE_DRIVER_CYW) || \
(defined(MG_ENABLE_DRIVER_CYW_SDIO) && MG_ENABLE_DRIVER_CYW_SDIO))
struct mg_tcpip_spi_ {
void *spi; // Opaque SPI bus descriptor
void (*begin)(void *); // SPI begin: slave select low
void (*end)(void *); // SPI end: slave select high
void (*txn)(void *, uint8_t *, uint8_t *,
size_t len); // SPI transaction: write-read len bytes
};
struct mg_tcpip_driver_cyw_firmware {
const uint8_t *code_addr;
size_t code_len;