File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11#pragma once
22
3- #define I2S_BUFFER_SIZE 512
43#define STM32_I2S_WITH_OBJECT
54#define USE_FULL_ASSERT
65
Original file line number Diff line number Diff line change @@ -516,12 +516,11 @@ void STM32_LOG(const char *msg) {
516516 PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_I2S;
517517#endif
518518#ifdef IS_H7
519- // if (hi2s->Instance == SPI1)
520- // PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SPI1;
521- // if (hi2s->Instance == SPI2)
522- // PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SPI2;
523- // if (hi2s->Instance == SPI3)
524- // PeriphClkInitStruct.PeriphClockSelection = RCC_SPI123CLKSOURCE_PLL2;
519+ if (hi2s->Instance == SPI1)
520+ PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SPI1;
521+ if (hi2s->Instance == SPI2)
522+ PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SPI2;
523+ if (hi2s->Instance == SPI3)
525524#endif
526525
527526#ifdef PLLM
You can’t perform that action at this time.
0 commit comments