From 3d80479b6a29b4778ab1f025a1873c665cf7a2b7 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Wed, 28 Aug 2024 12:39:55 +0800 Subject: [PATCH] add i2c drivers, MCU/BOARD NAME changed to YUNHORN-STS-WLE5CC --- Core/Inc/stm32wlxx_hal_conf.h | 2 +- Core/Src/i2c.c | 1 + STM32CubeIDE/.cproject | 12 ++++++------ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Core/Inc/stm32wlxx_hal_conf.h b/Core/Inc/stm32wlxx_hal_conf.h index 60fd3b2..b06c984 100644 --- a/Core/Inc/stm32wlxx_hal_conf.h +++ b/Core/Inc/stm32wlxx_hal_conf.h @@ -41,7 +41,7 @@ /*#define HAL_DAC_MODULE_ENABLED */ /*#define HAL_GTZC_MODULE_ENABLED */ /*#define HAL_HSEM_MODULE_ENABLED */ -/*#define HAL_I2C_MODULE_ENABLED */ +#define HAL_I2C_MODULE_ENABLED /*#define HAL_I2S_MODULE_ENABLED */ /*#define HAL_IPCC_MODULE_ENABLED */ /*#define HAL_IRDA_MODULE_ENABLED */ diff --git a/Core/Src/i2c.c b/Core/Src/i2c.c index 3ab7d85..0911d30 100644 --- a/Core/Src/i2c.c +++ b/Core/Src/i2c.c @@ -21,6 +21,7 @@ /* Includes ------------------------------------------------------------------*/ #include "i2c.h" #include "main.h" +#include "yunhorn_sts_prd_conf.h" /* USER CODE BEGIN 0 */ I2C_HandleTypeDef hi2c2; DMA_HandleTypeDef hdma_i2c2_rx; diff --git a/STM32CubeIDE/.cproject b/STM32CubeIDE/.cproject index 93edae5..468e7ec 100644 --- a/STM32CubeIDE/.cproject +++ b/STM32CubeIDE/.cproject @@ -17,11 +17,11 @@ -