Skip to content

Commit

Permalink
Fix SPI glitch on MAX32670
Browse files Browse the repository at this point in the history
Prevented SPI from working.
A fix for both the 32660 and 32660 was pushed by Maxim (ARMmbed#15453)
  • Loading branch information
felser committed Oct 4, 2023
1 parent 49b2399 commit a322c3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ int MXC_SPI_RevA_TransSetup (mxc_spi_reva_req_t * req)
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);
}

Expand Down

0 comments on commit a322c3f

Please sign in to comment.