Andrew Neil

Poor description of GPIO_InitTypeDef Pin member

Discussion created by Andrew Neil on Dec 6, 2017
typedef struct
{
  uint32_t Pin;       /*!< Specifies the GPIO pins to be configured.
                           This parameter can be a combination of @ref GPIO_pins_define */

  :
  :
}GPIO_InitTypeDef;

 

So what is, "a combination" supposed to mean? How should they be "combined"?

 

It would be a lot clearer to say explicitly that this is a bitmap of the pins to be configured.

Outcomes