We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a191326 commit bcfe751Copy full SHA for bcfe751
src/machine/machine_fe310.go
@@ -26,6 +26,8 @@ const (
26
func (p Pin) Configure(config PinConfig) {
27
sifive.GPIO0.INPUT_EN.SetBits(1 << uint8(p))
28
switch config.Mode {
29
+ case PinInput:
30
+ sifive.GPIO0.OUTPUT_EN.ClearBits(1 << uint8(p))
31
case PinOutput:
32
sifive.GPIO0.OUTPUT_EN.SetBits(1 << uint8(p))
33
case PinPWM:
0 commit comments