[dev_asynch_i2c] Move i2c_s to common_objects.h

pull/2622/head
Erwan GOURIOU 2016-09-01 17:38:34 +02:00
parent 8982ff1971
commit 1707b3c582
2 changed files with 15 additions and 15 deletions

View File

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

View File

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