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:
parent
0c6b965898
commit
cd27b63b89
6 changed files with 24 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue