diff options
Diffstat (limited to 'src/machine/machine_k210.go')
-rw-r--r-- | src/machine/machine_k210.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/machine/machine_k210.go b/src/machine/machine_k210.go index ca5f2d804..b92eab910 100644 --- a/src/machine/machine_k210.go +++ b/src/machine/machine_k210.go @@ -80,6 +80,9 @@ func (p Pin) Configure(config PinConfig) { return // The pin is not configured as GPIO or GPIOHS. } + // Configure pin. + kendryte.FPIOA.IO[uint8(p)].SetBits(kendryte.FPIOA_IO_OE_EN | kendryte.FPIOA_IO_IE_EN | kendryte.FPIOA_IO_ST | kendryte.FPIOA_IO_DS_Msk) + switch config.Mode { case PinInput: p.setFPIOAIOPull(fpioaPullNone) |