diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h index 60e5615db5..b800780a26 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h @@ -60,21 +60,6 @@ struct analogin_s { uint8_t channel; }; -struct i2c_s { - I2CName i2c; - I2C_HandleTypeDef handle; - IRQn_Type event_i2cIRQ; - IRQn_Type error_i2cIRQ; - uint32_t slave; -#if DEVICE_I2C_ASYNCH - uint32_t event; - uint32_t address; - uint32_t stop; - uint32_t available_events; - uint32_t XferOperation; -#endif -}; - #include "common_objects.h" #include "gpio_object.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h index 2f0df22f39..cafcef7f6a 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h @@ -83,6 +83,21 @@ struct spi_s { #endif }; +struct i2c_s { + I2CName i2c; + I2C_HandleTypeDef handle; + IRQn_Type event_i2cIRQ; + IRQn_Type error_i2cIRQ; + uint32_t slave; +#if DEVICE_I2C_ASYNCH + uint32_t event; + uint32_t address; + uint32_t stop; + uint32_t available_events; + uint32_t XferOperation; +#endif +}; + #include "gpio_object.h" #ifdef __cplusplus