From af14e9b518123db92ac5eeb432caa5eea2fa067f Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Wed, 22 Dec 2021 19:09:04 +0100 Subject: [PATCH] ftdispi: pre/post flash access --- src/ftdispi.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ftdispi.hpp b/src/ftdispi.hpp index ca1b327..0a20d31 100644 --- a/src/ftdispi.hpp +++ b/src/ftdispi.hpp @@ -56,6 +56,16 @@ class FtdiSpi : public FTDIpp_MPSSE, SPIInterface { int spi_wait(uint8_t cmd, uint8_t mask, uint8_t cond, uint32_t timeout, bool verbose=false) override; + protected: + /*! + * \brief move device to SPI access + */ + virtual bool prepare_flash_access() override {return true;} + /*! + * \brief end of device to SPI access + */ + virtual bool post_flash_access() override {return true;} + private: uint8_t _cs; uint16_t _cs_bits;