1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 11:59:58 +03:00

Exclude SWD pins from being initialised as pull up if unused.

This commit is contained in:
mikeller 2020-01-28 00:00:04 +13:00 committed by Michael Keller
parent 0c6b965898
commit cd27b63b89
6 changed files with 24 additions and 8 deletions

View file

@ -273,14 +273,14 @@ void initialiseMemorySections(void)
#endif
}
static void initializeUnusedPin(IO_t io)
static void unusedPinInit(IO_t io)
{
if (IOGetOwner(io) == OWNER_FREE) {
IOConfigGPIO(io, IOCFG_IPU);
}
}
void initializeUnusedPins(void)
void unusedPinsInit(void)
{
IOTraversePins(initializeUnusedPin);
IOTraversePins(unusedPinInit);
}