This repository was archived by the owner on Jan 7, 2019. It is now read-only.
Commit 6328b4a
committed
[stm32] Fix GpioPort mask for 32-bit registers
GpioPort::setOutput(), setInput() as well as configure() function access
registers GPIOx->MODER, GPIOx->OSPEEDR and GPIOx->PUPDR, which contain
16x 2-bit values for each port, which are masked by `portMask2`.
Even though `portMask2` had the correct width, its offset was wrong and
therefore configured the wrong pins as output.1 parent 857e514 commit 6328b4a
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| |||
0 commit comments