File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
TARGET_MAX32660/Libraries/PeriphDrivers/Source/SPI
TARGET_MAX32670/Libraries/PeriphDrivers/Source/SPI Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -764,7 +764,7 @@ int MXC_SPI_RevA_TransSetup(mxc_spi_reva_req_t *req)
764
764
states [spi_num ].started = 0 ;
765
765
states [spi_num ].req_done = 0 ;
766
766
// HW requires disabling/renabling SPI block at end of each transaction (when SS is inactive).
767
- if (states [spi_num ].ssDeassert == 1 ) {
767
+ if (states [spi_num ].drv_ssel && ( states [ spi_num ]. ssDeassert == 1 ) ) {
768
768
(req -> spi )-> ctrl0 &= ~(MXC_F_SPI_REVA_CTRL0_EN );
769
769
}
770
770
Original file line number Diff line number Diff line change @@ -764,7 +764,7 @@ int MXC_SPI_RevA_TransSetup(mxc_spi_reva_req_t *req)
764
764
states [spi_num ].started = 0 ;
765
765
states [spi_num ].req_done = 0 ;
766
766
// HW requires disabling/renabling SPI block at end of each transaction (when SS is inactive).
767
- if (states [spi_num ].ssDeassert == 1 ) {
767
+ if (states [spi_num ].drv_ssel && ( states [ spi_num ]. ssDeassert == 1 ) ) {
768
768
(req -> spi )-> ctrl0 &= ~(MXC_F_SPI_REVA_CTRL0_EN );
769
769
}
770
770
You can’t perform that action at this time.
0 commit comments