Skip to content

Commit d77d477

Browse files
committed
STM32F723xx
1 parent 95443c2 commit d77d477

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/stm32-config-i2s.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#pragma once
22

3-
#define I2S_BUFFER_SIZE 512
43
#define STM32_I2S_WITH_OBJECT
54
#define USE_FULL_ASSERT
65

src/stm32-i2s.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)