Skip to content

Commit

Permalink
fix command sequence for flash spi with dma
Browse files Browse the repository at this point in the history
  • Loading branch information
cassio-lazaro committed Aug 6, 2024
1 parent 54942da commit 1f9eb76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal_st/stm32fxxx/SpiMasterStmDma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ namespace hal
else
std::abort();

peripheralSpi[spiInstance]->CR1 |= SPI_CR1_SPE;
#ifdef SPI_CR1_CSTART
peripheralSpi[spiInstance]->CR1 |= SPI_CR1_CSTART;
#endif
peripheralSpi[spiInstance]->CR1 |= SPI_CR1_SPE;
}

void SpiMasterStmDma::SetChipSelectConfigurator(ChipSelectConfigurator& configurator)
Expand Down

0 comments on commit 1f9eb76

Please sign in to comment.