ftdispi: pre/post flash access
This commit is contained in:
parent
ffa90fb6fb
commit
af14e9b518
|
|
@ -56,6 +56,16 @@ class FtdiSpi : public FTDIpp_MPSSE, SPIInterface {
|
||||||
int spi_wait(uint8_t cmd, uint8_t mask, uint8_t cond,
|
int spi_wait(uint8_t cmd, uint8_t mask, uint8_t cond,
|
||||||
uint32_t timeout, bool verbose=false) override;
|
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:
|
private:
|
||||||
uint8_t _cs;
|
uint8_t _cs;
|
||||||
uint16_t _cs_bits;
|
uint16_t _cs_bits;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue