mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Add resource command
This commit is contained in:
parent
f78ced9a4d
commit
c6aa8e7b56
3 changed files with 5 additions and 0 deletions
|
@ -64,5 +64,6 @@ const char * const ownerNames[OWNER_TOTAL_COUNT] = {
|
||||||
"COMPASS_CS",
|
"COMPASS_CS",
|
||||||
"SPI_PREINIT",
|
"SPI_PREINIT",
|
||||||
"RX_BIND_PLUG",
|
"RX_BIND_PLUG",
|
||||||
|
"ESCSERIAL",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ typedef enum {
|
||||||
OWNER_COMPASS_CS,
|
OWNER_COMPASS_CS,
|
||||||
OWNER_SPI_PREINIT,
|
OWNER_SPI_PREINIT,
|
||||||
OWNER_RX_BIND_PLUG,
|
OWNER_RX_BIND_PLUG,
|
||||||
|
OWNER_ESCSERIAL,
|
||||||
OWNER_TOTAL_COUNT
|
OWNER_TOTAL_COUNT
|
||||||
} resourceOwner_e;
|
} resourceOwner_e;
|
||||||
|
|
||||||
|
|
|
@ -2854,6 +2854,9 @@ const cliResourceValue_t resourceTable[] = {
|
||||||
{ OWNER_SPI_MISO, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagMiso[0]), SPIDEV_COUNT },
|
{ OWNER_SPI_MISO, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagMiso[0]), SPIDEV_COUNT },
|
||||||
{ OWNER_SPI_MOSI, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagMosi[0]), SPIDEV_COUNT },
|
{ OWNER_SPI_MOSI, PG_SPI_PIN_CONFIG, offsetof(spiPinConfig_t, ioTagMosi[0]), SPIDEV_COUNT },
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_ESCSERIAL
|
||||||
|
{ OWNER_ESCSERIAL, PG_ESCSERIAL_CONFIG, offsetof(escSerialConfig_t, ioTag), 0 },
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static ioTag_t *getIoTag(const cliResourceValue_t value, uint8_t index)
|
static ioTag_t *getIoTag(const cliResourceValue_t value, uint8_t index)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue