diff options
| author | Damien George <damien@micropython.org> | 2025-03-19 15:47:35 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-03-25 12:58:43 +1100 |
| commit | c61e85910879d5db120d00f7790ed36f4dcda44d (patch) | |
| tree | 1235e998114ab7f3e9ada871a20c8d26a2d565e2 /drivers/bus/qspi.h | |
| parent | 274c8c419c97bdb54fa14de37a38b08dcefd1493 (diff) | |
drivers: Add MP_QSPI_IOCTL_MEMORY_MODIFIED to indicate flash changed.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'drivers/bus/qspi.h')
| -rw-r--r-- | drivers/bus/qspi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bus/qspi.h b/drivers/bus/qspi.h index 009f55b15..7ba2e7509 100644 --- a/drivers/bus/qspi.h +++ b/drivers/bus/qspi.h @@ -37,10 +37,11 @@ enum { MP_QSPI_IOCTL_DEINIT, MP_QSPI_IOCTL_BUS_ACQUIRE, MP_QSPI_IOCTL_BUS_RELEASE, + MP_QSPI_IOCTL_MEMORY_MODIFIED, }; typedef struct _mp_qspi_proto_t { - int (*ioctl)(void *self, uint32_t cmd); + int (*ioctl)(void *self, uint32_t cmd, uintptr_t arg); int (*write_cmd_data)(void *self, uint8_t cmd, size_t len, uint32_t data); int (*write_cmd_addr_data)(void *self, uint8_t cmd, uint32_t addr, size_t len, const uint8_t *src); int (*read_cmd)(void *self, uint8_t cmd, size_t len, uint32_t *dest); |
