ftdispi: force mode 0 by default

This commit is contained in:
Gwenhael Goavec-Merou 2020-10-06 08:36:31 +02:00
parent 221e814509
commit 01fbbf747d
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ FtdiSpi::FtdiSpi(int vid, int pid, unsigned char interface, uint32_t clkHZ,
bool verbose):
FTDIpp_MPSSE(bit_conf, "", "", clkHZ, verbose)
{
setMode(0);
setCSmode(SPI_CS_AUTO);
setEndianness(SPI_MSB_FIRST);
@ -78,6 +79,7 @@ FtdiSpi::FtdiSpi(const FTDIpp_MPSSE::mpsse_bit_config &conf, uint32_t clkHZ,
bool verbose):
FTDIpp_MPSSE(conf, "", "", clkHZ, verbose)
{
setMode(0);
setCSmode(SPI_CS_AUTO);
setEndianness(SPI_MSB_FIRST);