mirror of https://github.com/ARMmbed/mbed-os.git
[dev_asynch_i2c] Move i2c_s to common_objects.h
parent
8982ff1971
commit
1707b3c582
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue