Skip to content

Commit 22d6bc0

Browse files
author
Erwan GOURIOU
committed
[dev_asynch_i2c] reduce footprint for i2c_s struct
1 parent d7dda28 commit 22d6bc0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ struct i2c_s {
8888
I2C_HandleTypeDef handle;
8989
IRQn_Type event_i2cIRQ;
9090
IRQn_Type error_i2cIRQ;
91-
uint32_t slave;
91+
uint8_t slave;
9292
#if DEVICE_I2C_ASYNCH
93-
uint32_t event;
9493
uint32_t address;
95-
uint32_t stop;
96-
uint32_t available_events;
97-
uint32_t XferOperation;
94+
uint8_t event;
95+
uint8_t stop;
96+
uint8_t available_events;
97+
uint8_t XferOperation;
9898
#endif
9999
};
100100

0 commit comments

Comments
 (0)