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
pull/3290/head
Laurent MEUNIER 2016-11-10 17:30:04 +01:00 committed by Anna Bridge
parent 84d8a88553
commit dd77d250eb
1 changed files with 1 additions and 0 deletions

View File

@ -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;