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 @@ -