From e135f1820b6a0485cf92bebb5bd3783ed0cd0247 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 24 May 2025 07:48:21 +0200 Subject: [PATCH] ice40: added detect_flash support --- src/ice40.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ice40.hpp b/src/ice40.hpp index ddf23fb..08157ca 100644 --- a/src/ice40.hpp +++ b/src/ice40.hpp @@ -24,6 +24,9 @@ class Ice40: public Device, SPIInterface { void program(unsigned int offset, bool unprotect_flash) override; bool program_cram(const uint8_t *data, uint32_t length); bool dumpFlash(uint32_t base_addr, uint32_t len) override; + bool detect_flash() override { + return SPIInterface::detect_flash(); + } bool protect_flash(uint32_t len) override; bool unprotect_flash() override; bool bulk_erase_flash() override;