Skip to content

Commit 1707b3c

Browse files
author
Erwan GOURIOU
committed
[dev_asynch_i2c] Move i2c_s to common_objects.h
1 parent 8982ff1 commit 1707b3c

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
@@ -60,21 +60,6 @@ struct analogin_s {
6060
uint8_t channel;
6161
};
6262

63-
struct i2c_s {
64-
I2CName i2c;
65-
I2C_HandleTypeDef handle;
66-
IRQn_Type event_i2cIRQ;
67-
IRQn_Type error_i2cIRQ;
68-
uint32_t slave;
69-
#if DEVICE_I2C_ASYNCH
70-
uint32_t event;
71-
uint32_t address;
72-
uint32_t stop;
73-
uint32_t available_events;
74-
uint32_t XferOperation;
75-
#endif
76-
};
77-
7863
#include "common_objects.h"
7964
#include "gpio_object.h"
8065

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,21 @@ struct spi_s {
8383
#endif
8484
};
8585

86+
struct i2c_s {
87+
I2CName i2c;
88+
I2C_HandleTypeDef handle;
89+
IRQn_Type event_i2cIRQ;
90+
IRQn_Type error_i2cIRQ;
91+
uint32_t slave;
92+
#if DEVICE_I2C_ASYNCH
93+
uint32_t event;
94+
uint32_t address;
95+
uint32_t stop;
96+
uint32_t available_events;
97+
uint32_t XferOperation;
98+
#endif
99+
};
100+
86101
#include "gpio_object.h"
87102

88103
#ifdef __cplusplus

0 commit comments

Comments
 (0)