Skip to content

Commit 9657b3c

Browse files
moment-NEWmoment-NEW
andauthored
[bsp][drives]fix(spi_config):修复H7的SPI6配置缺失问题 (#11633)
* [bsp][drives]fix(spi_config):修复H7的SPI6配置缺失问题 * style: format code with clang-format [skip ci] * [bsp][stm32]refactor:(spi_config):去除尚不支持的DMA相关配置 * [bsp][stm32]refactor(spi_config):格式化SPI_CONFIG.H --------- Co-authored-by: moment-NEW <moment-NEW+github[bot]@noreply.github.com>
1 parent 1fa451f commit 9657b3c

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

  • bsp/stm32/libraries/HAL_Drivers/drivers/config/h7

‎bsp/stm32/libraries/HAL_Drivers/drivers/config/h7/spi_config.h‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2023, RT-Thread Development Team
2+
* Copyright (c) 2006-2026, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -333,8 +333,21 @@ extern "C" {
333333
#endif /* SPI5_RX_DMA_CONFIG */
334334
#endif /* BSP_SPI5_RX_USING_DMA */
335335

336+
#ifdef BSP_USING_SPI6
337+
#ifndef SPI6_BUS_CONFIG
338+
#define SPI6_BUS_CONFIG \
339+
{ \
340+
.Instance = SPI6, \
341+
.bus_name = "spi6", \
342+
.irq_type = SPI6_IRQn, \
343+
}
344+
#endif /* SPI6_BUS_CONFIG */
345+
#endif /* BSP_USING_SPI6 */
346+
347+
336348
#ifdef __cplusplus
337349
}
338350
#endif
339351

340352
#endif /*__SPI_CONFIG_H__ */
353+

0 commit comments

Comments
 (0)