Skip to content

Commit

Permalink
fix: command sequence for flash spi with dma (#370)
Browse files Browse the repository at this point in the history
fix command sequence for flash spi with dma

Co-authored-by: André Jordan <3933856+andjordan@users.noreply.github.com>
  • Loading branch information
cassio-lazaro and andjordan committed Aug 7, 2024
1 parent 10e1bd1 commit edbd1e3
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 edbd1e3

Please sign in to comment.