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 1
1
#pragma once
2
2
3
- #define I2S_BUFFER_SIZE 512
4
3
#define STM32_I2S_WITH_OBJECT
5
4
#define USE_FULL_ASSERT
6
5
Original file line number Diff line number Diff line change @@ -516,12 +516,11 @@ void STM32_LOG(const char *msg) {
516
516
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_I2S;
517
517
#endif
518
518
#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)
525
524
#endif
526
525
527
526
#ifdef PLLM
You can’t perform that action at this time.
0 commit comments