Skip to content

Commit

Permalink
fixup example-f429 spi_dma: enable Dma2 instead of Dma1
Browse files Browse the repository at this point in the history
  • Loading branch information
rleh committed Jun 8, 2021
1 parent 8d32ee5 commit e154b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/nucleo_f429zi/spi_dma/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main()
MODM_LOG_INFO << "Hello from SPI-DMA example on Nucleo-F429ZI!" << modm::endl;

// Enable DMA1 controller
Dma1::enable();
Dma2::enable();
// Enable SPI1
Spi::connect<Mosi::Mosi, Miso::Miso, Sck::Sck>();
Spi::initialize<Board::SystemClock, 10_MHz>();
Expand Down

0 comments on commit e154b5d

Please sign in to comment.