mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 18:02:38 +02:00
ftdispi: pre/post flash access
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user