1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +03:00

Use busDevice_s for reconfigurability

This commit is contained in:
jflyper 2018-04-28 21:58:56 +09:00
parent 75f82c7f2b
commit 944a2986a5
5 changed files with 77 additions and 49 deletions

View file

@ -122,6 +122,7 @@ extern uint8_t __config_end;
#include "pg/beeper_dev.h"
#include "pg/bus_i2c.h"
#include "pg/bus_spi.h"
#include "pg/max7456.h"
#include "pg/pinio.h"
#include "pg/pg.h"
#include "pg/pg_ids.h"
@ -3351,6 +3352,9 @@ const cliResourceValue_t resourceTable[] = {
#ifdef USE_FLASH
{ OWNER_FLASH_CS, PG_FLASH_CONFIG, offsetof(flashConfig_t, csTag), 0 },
#endif
#ifdef USE_MAX7456
{ OWNER_OSD_CS, PG_MAX7456_CONFIG, offsetof(max7456Config_t, csTag), 0 },
#endif
};
static ioTag_t *getIoTag(const cliResourceValue_t value, uint8_t index)