Skip to content

Commit a7838fd

Browse files
author
Erwan GOURIOU
committed
[dev_asynch_i2c] Move i2c_s to common_objects.h
1 parent fa72452 commit a7838fd

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,6 @@ struct spi_s {
7474
PinName pin_ssel;
7575
};
7676

77-
struct i2c_s {
78-
I2CName i2c;
79-
I2C_HandleTypeDef handle;
80-
IRQn_Type event_i2cIRQ;
81-
IRQn_Type error_i2cIRQ;
82-
uint32_t slave;
83-
#if DEVICE_I2C_ASYNCH
84-
uint32_t event;
85-
uint32_t address;
86-
uint32_t stop;
87-
uint32_t available_events;
88-
uint32_t XferOperation;
89-
#endif
90-
};
91-
9277
#include "common_objects.h"
9378
#include "gpio_object.h"
9479

hal/targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ struct serial_s {
6868
#endif
6969
};
7070

71+
struct i2c_s {
72+
I2CName i2c;
73+
I2C_HandleTypeDef handle;
74+
IRQn_Type event_i2cIRQ;
75+
IRQn_Type error_i2cIRQ;
76+
uint32_t slave;
77+
#if DEVICE_I2C_ASYNCH
78+
uint32_t event;
79+
uint32_t address;
80+
uint32_t stop;
81+
uint32_t available_events;
82+
uint32_t XferOperation;
83+
#endif
84+
};
85+
7186
#include "gpio_object.h"
7287

7388
#ifdef __cplusplus

0 commit comments

Comments
 (0)