Does the order of the pins assigned with GPIO_InitStruct.Pin matter? ex: PIN1 | PIN2 | PIN3 vs PIN2 | PIN1 | PIN3, does it give the same result? and what about HAL_GPIO_WritePin, does the order of the pins matter?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-17 2:21 PM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-18 3:15 AM
The pins are represented by bits, which are put together using the OR function, so their order at the line of source doesn't matter. This applies to all similar function calls.
Good luck!
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-18 3:15 AM
The pins are represented by bits, which are put together using the OR function, so their order at the line of source doesn't matter. This applies to all similar function calls.
Good luck!
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
/Peter
