mirror of https://github.com/ARMmbed/mbed-os.git
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 itselfpull/3290/head
parent
84d8a88553
commit
dd77d250eb
|
@ -87,6 +87,7 @@ struct i2c_s {
|
||||||
/* The 1st 2 members I2CName i2c
|
/* The 1st 2 members I2CName i2c
|
||||||
* and I2C_HandleTypeDef handle should
|
* and I2C_HandleTypeDef handle should
|
||||||
* be kept as the first members of this struct
|
* be kept as the first members of this struct
|
||||||
|
* to have get_i2c_obj() function work as expected
|
||||||
*/
|
*/
|
||||||
I2CName i2c;
|
I2CName i2c;
|
||||||
I2C_HandleTypeDef handle;
|
I2C_HandleTypeDef handle;
|
||||||
|
|
Loading…
Reference in New Issue