analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
66 stars 82 forks source link

./Libraries/MiscDrivers/PushButton/pb.c PB_Get function doesn't work on AD-APARD32690-SL board #1156

Closed perkinsmg closed 1 month ago

perkinsmg commented 2 months ago

The button on the EvKit1 is set up to be high when open, low when closed, so PB_Get works. But on AD-APARD32690-SL, it's the other way round, and so PB_Get returns when the button is open, not closed. Of course, you can fix this at the call-site, but it does mean examples don't port nicely from one board to another.

Jake-Carter commented 2 months ago

@perkinsmg added the ability to configure the PB polarity and updated the APARD BSP.

PR open above, branch is feat/pb-polarity if you'd like to test it out