mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
Merge pull request #8723 from schugabe/pin_up_down_config
Add resource option to configure unused pins as pulldown
This commit is contained in:
commit
d331aed726
11 changed files with 189 additions and 1 deletions
|
@ -137,6 +137,7 @@ bool cliMode = false;
|
|||
#include "pg/mco.h"
|
||||
#include "pg/motor.h"
|
||||
#include "pg/pinio.h"
|
||||
#include "pg/pin_pull_up_down.h"
|
||||
#include "pg/pg.h"
|
||||
#include "pg/pg_ids.h"
|
||||
#include "pg/rx.h"
|
||||
|
@ -4913,6 +4914,10 @@ const cliResourceValue_t resourceTable[] = {
|
|||
DEFS( OWNER_VTX_DATA, PG_VTX_IO_CONFIG, vtxIOConfig_t, dataTag ),
|
||||
DEFS( OWNER_VTX_CLK, PG_VTX_IO_CONFIG, vtxIOConfig_t, clockTag ),
|
||||
#endif
|
||||
#ifdef USE_PIN_PULL_UP_DOWN
|
||||
DEFA( OWNER_PULLUP, PG_PULLUP_CONFIG, pinPullUpDownConfig_t, ioTag, PIN_PULL_UP_DOWN_COUNT ),
|
||||
DEFA( OWNER_PULLDOWN, PG_PULLDOWN_CONFIG, pinPullUpDownConfig_t, ioTag, PIN_PULL_UP_DOWN_COUNT ),
|
||||
#endif
|
||||
};
|
||||
|
||||
#undef DEFS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue