Merge pull request #15453 from MaximIntegrated/fix-spi_glitch

Fix MAX32660, MAX32670 SPI glitch fix
pull/15456/head
Martin Kojtal 2023-09-13 13:24:35 +01:00 committed by GitHub
commit 7049bfcef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -764,7 +764,7 @@ int MXC_SPI_RevA_TransSetup(mxc_spi_reva_req_t *req)
states[spi_num].started = 0;
states[spi_num].req_done = 0;
// HW requires disabling/renabling SPI block at end of each transaction (when SS is inactive).
if (states[spi_num].ssDeassert == 1) {
if (states[spi_num].drv_ssel && (states[spi_num].ssDeassert == 1)) {
(req->spi)->ctrl0 &= ~(MXC_F_SPI_REVA_CTRL0_EN);
}

View File

@ -764,7 +764,7 @@ int MXC_SPI_RevA_TransSetup(mxc_spi_reva_req_t *req)
states[spi_num].started = 0;
states[spi_num].req_done = 0;
// HW requires disabling/renabling SPI block at end of each transaction (when SS is inactive).
if (states[spi_num].ssDeassert == 1) {
if (states[spi_num].drv_ssel && (states[spi_num].ssDeassert == 1) ) {
(req->spi)->ctrl0 &= ~(MXC_F_SPI_REVA_CTRL0_EN);
}