Move i2c_s to common_objects.h

pull/2852/head
Erwan GOURIOU 2016-09-01 17:38:34 +02:00 committed by Anna Bridge
parent 9b204f8be2
commit 72f17e67aa
2 changed files with 15 additions and 15 deletions

View File

@ -60,21 +60,6 @@ struct analogin_s {
uint8_t channel; 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 "common_objects.h"
#include "gpio_object.h" #include "gpio_object.h"

View File

@ -83,6 +83,21 @@ struct spi_s {
#endif #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" #include "gpio_object.h"
#ifdef __cplusplus #ifdef __cplusplus