mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Made MSC initialisation pin configurable. (#5535)
This commit is contained in:
parent
605962d9a5
commit
83e614c139
13 changed files with 99 additions and 69 deletions
|
@ -123,6 +123,7 @@ extern uint8_t __config_end;
|
|||
#include "pg/pg.h"
|
||||
#include "pg/pg_ids.h"
|
||||
#include "pg/rx_pwm.h"
|
||||
#include "pg/usb.h"
|
||||
|
||||
#include "rx/rx.h"
|
||||
#include "rx/spektrum.h"
|
||||
|
@ -3304,6 +3305,9 @@ const cliResourceValue_t resourceTable[] = {
|
|||
#ifdef USE_PINIO
|
||||
{ OWNER_PINIO, PG_PINIO_CONFIG, offsetof(pinioConfig_t, ioTag), PINIO_COUNT },
|
||||
#endif
|
||||
#if defined(USE_USB_MSC)
|
||||
{ OWNER_USB_MSC_PIN, PG_USB_CONFIG, offsetof(usbDev_t, mscButtonPin), 0 },
|
||||
#endif
|
||||
};
|
||||
|
||||
static ioTag_t *getIoTag(const cliResourceValue_t value, uint8_t index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue