Skip to content

Commit 046efdd

Browse files
deadprogramaykevl
authored andcommitted
machine/stm32f103xx: enable clock on configure of GPIO pin
Signed-off-by: Ron Evans <[email protected]>
1 parent 9d3de55 commit 046efdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/machine/machine_stm32f103xx.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const (
3737
// stm32f1xx uses different technique for setting the GPIO pins than the stm32f407
3838
func (p Pin) Configure(config PinConfig) {
3939
// Configure the GPIO pin.
40+
p.enableClock()
4041
port := p.getPort()
4142
pin := uint8(p) % 16
4243
pos := (pin % 8) * 4

0 commit comments

Comments
 (0)