Skip to content

Commit e293e07

Browse files
committed
stm32f4 make comment more explicit
As reported during review, this was not understandable as it is. the get_i2c_obj allows to get a pointer to i2c_s struct from the handle pointer. This therefore makes a hard-coded assumption about the struct itself
1 parent 4c36b9c commit e293e07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/TARGET_STM/TARGET_STM32F4/common_objects.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ struct i2c_s {
8787
/* The 1st 2 members I2CName i2c
8888
* and I2C_HandleTypeDef handle should
8989
* be kept as the first members of this struct
90+
* to have get_i2c_obj() function work as expected
9091
*/
9192
I2CName i2c;
9293
I2C_HandleTypeDef handle;

0 commit comments

Comments
 (0)