mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
SPI flash support, with xiao nrf52 and portenta-h7
This commit is contained in:
1 parent
57e30ab2e9
commit
f02ea9859e
17 files changed
+442
-17
No files matched your search
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user