SPI flash support, with xiao nrf52 and portenta-h7

This commit is contained in:
cpq committed 2026-12-03 11:56:57 +00:00
1 parent 57e30ab2e9
commit f02ea9859e
17 files changed
+442 -17

No files matched your search

+4 -2
View File
@@ -2,8 +2,10 @@
#include "arch.h"
// SPI bus abstraction for SPI-attached chips, e.g. W5500.
// Network drivers get it via the driver_data field
// SPI bus abstraction for SPI-attached chips, e.g. W5500 or SPI flash, see
// mg_spi_flash_init(). Network drivers get it via the driver_data field.
// Callbacks get the spi field. txn() with NULL write sends filler bytes, with
// NULL read discards what it receives
struct mg_spi {
void *spi; // Opaque SPI bus handle passed to all callbacks
void (*begin)(void *); // Assert chip-select, start of transaction