From c6aa8e7b5649e5bbbb66e3b021fb99700ccc05a5 Mon Sep 17 00:00:00 2001 From: jflyper Date: Mon, 3 Jul 2017 11:52:01 +0900 Subject: [PATCH] Add resource command --- src/main/drivers/resource.c | 1 + src/main/drivers/resource.h | 1 + src/main/fc/cli.c | 3 +++ 3 files changed, 5 insertions(+) diff --git a/src/main/drivers/resource.c b/src/main/drivers/resource.c index 13cdf530b1..ef1c5d4bf8 100644 --- a/src/main/drivers/resource.c +++ b/src/main/drivers/resource.c @@ -64,5 +64,6 @@ const char * const ownerNames[OWNER_TOTAL_COUNT] = { "COMPASS_CS", "SPI_PREINIT", "RX_BIND_PLUG", + "ESCSERIAL", }; diff --git a/src/main/drivers/resource.h b/src/main/drivers/resource.h index f79990ea89..9ed75318d5 100644 --- a/src/main/drivers/resource.h +++ b/src/main/drivers/resource.h @@ -64,6 +64,7 @@ typedef enum { OWNER_COMPASS_CS, OWNER_SPI_PREINIT, OWNER_RX_BIND_PLUG, + OWNER_ESCSERIAL, OWNER_TOTAL_COUNT } resourceOwner_e; diff --git a/src/main/fc/cli.c b/src/main/fc/cli.c index 750a8f13e7..29358ccb8b 100755 --- a/src/main/fc/cli.c +++ b/src/main/fc/cli.c @@ -2854,6 +2854,9 @@ const cliResourceValue_t resourceTable[] = { { 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 }, #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)