summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJust Chen <[email protected]>2026-07-21 11:58:33 +0800
committerGitHub <[email protected]>2026-07-21 11:58:33 +0800
commit9657b3ce1070e1c83479f011bd09d84a922072f2 (patch)
treec5e9ac8b9a757f119ccd82d8176e2c5fbb4fd05e
parent1fa451feeacac43735c034a443ac685683121194 (diff)
[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>
-rw-r--r--bsp/stm32/libraries/HAL_Drivers/drivers/config/h7/spi_config.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drivers/config/h7/spi_config.h b/bsp/stm32/libraries/HAL_Drivers/drivers/config/h7/spi_config.h
index c0a4410478..4f5c8c9f82 100644
--- a/bsp/stm32/libraries/HAL_Drivers/drivers/config/h7/spi_config.h
+++ b/bsp/stm32/libraries/HAL_Drivers/drivers/config/h7/spi_config.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2023, RT-Thread Development Team
+ * Copyright (c) 2006-2026, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -333,8 +333,21 @@ extern "C" {
#endif /* SPI5_RX_DMA_CONFIG */
#endif /* BSP_SPI5_RX_USING_DMA */
+#ifdef BSP_USING_SPI6
+#ifndef SPI6_BUS_CONFIG
+#define SPI6_BUS_CONFIG \
+ { \
+ .Instance = SPI6, \
+ .bus_name = "spi6", \
+ .irq_type = SPI6_IRQn, \
+ }
+#endif /* SPI6_BUS_CONFIG */
+#endif /* BSP_USING_SPI6 */
+
+
#ifdef __cplusplus
}
#endif
#endif /*__SPI_CONFIG_H__ */
+