Skip to content

Commit

Permalink
STM32F723xx
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Jul 28, 2024
1 parent 95443c2 commit d77d477
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/stm32-config-i2s.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#define I2S_BUFFER_SIZE 512
#define STM32_I2S_WITH_OBJECT
#define USE_FULL_ASSERT

Expand Down
11 changes: 5 additions & 6 deletions src/stm32-i2s.h
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,11 @@ void STM32_LOG(const char *msg) {
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_I2S;
#endif
#ifdef IS_H7
// if (hi2s->Instance == SPI1)
// PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SPI1;
// if (hi2s->Instance == SPI2)
// PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SPI2;
// if (hi2s->Instance == SPI3)
// PeriphClkInitStruct.PeriphClockSelection = RCC_SPI123CLKSOURCE_PLL2;
if (hi2s->Instance == SPI1)
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SPI1;
if (hi2s->Instance == SPI2)
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SPI2;
if (hi2s->Instance == SPI3)
#endif

#ifdef PLLM
Expand Down

0 comments on commit d77d477

Please sign in to comment.