I will make a PR with a fix soon. It seems that the input buffer is internally connected under certain conditions. But I found some case where the pin value was not being read correctly so I suppose this could be the issue.
Best, Matias On Mon, Jan 11, 2021, at 06:33, raiden00pl wrote: > It looks like a bug. But for some reason with the input buffer turned off, > reading the input pin still works (nrf52840). > > niedz., 10 sty 2021 o 19:17 Matias N. <mat...@imap.cc> napisaĆ(a): > > > Hi, > > while debugging the issue I mentioned in the other thread, I found > > something strange: when configuring a pin as input on nRF52, the input > > buffer is not enabled (by clearing the relevant INPUT bit of the PIN_CFG > > register): > > https://github.com/apache/incubator-nuttx/blob/master/arch/arm/src/nrf52/nrf52_gpio.c#L94 > > > > Is this a bug? Or am I missing something? > > > > Best, > > Matias >