rpmsg_port_spi:init cs gpio to be low
Transfer will be failure when the cs gpio status is low before the first transfer. Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
parent
6e55812e59
commit
6a6fc8d883
@ -442,6 +442,7 @@ rpmsg_port_spi_init_hardware(FAR struct rpmsg_port_spi_s *rpspi,
|
||||
SPI_SETMODE(spi, spicfg->mode);
|
||||
SPI_SETFREQUENCY(spi, spicfg->freq);
|
||||
SPI_REGISTERCALLBACK(spi, rpmsg_port_spi_complete_handler, rpspi);
|
||||
SPI_SELECT(spi, spicfg->devid, false);
|
||||
|
||||
rpspi->spi = spi;
|
||||
rpspi->ioe = ioe;
|
||||
|
Loading…
Reference in New Issue
Block a user