diff options
author | Damien George <damien@micropython.org> | 2025-04-02 12:47:48 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-04-09 22:36:55 +1000 |
commit | b078569cffb4b32585806b42ef7a0501bc4d0bca (patch) | |
tree | 206500660838192ef7fc58af3a0109ced1e6852d /py/objrange.c | |
parent | e7edf0783e945f4107dcc7f68543ed05e92189a4 (diff) |
drivers/memory/spiflash: Allow a board/port to detect SPI flash.
This commit allows the user of this driver to intercept the SPI flash
initialisation routine and possibly take some action based on the JEDEC id,
for example change the `mp_spiflash_t::chip_params` element.
To do this, enable `MICROPY_HW_SPIFLASH_DETECT_DEVICE` and define a
function called `mp_spiflash_detect()`.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/objrange.c')
0 files changed, 0 insertions, 0 deletions