mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Enable Composite USB HID for all F4, add PG for USB device. (#5525)
This commit is contained in:
parent
efda704ee5
commit
b9ab42d6a7
10 changed files with 98 additions and 21 deletions
|
@ -74,6 +74,7 @@
|
|||
#include "pg/rx_pwm.h"
|
||||
#include "pg/sdcard.h"
|
||||
#include "pg/vcd.h"
|
||||
#include "pg/usb.h"
|
||||
|
||||
#include "rx/rx.h"
|
||||
#include "rx/cc2500_frsky_common.h"
|
||||
|
@ -320,7 +321,7 @@ static const char * const lookupOverclock[] = {
|
|||
#endif
|
||||
|
||||
#define LOOKUP_TABLE_ENTRY(name) { name, ARRAYLEN(name) }
|
||||
|
||||
|
||||
const lookupTableEntry_t lookupTables[] = {
|
||||
LOOKUP_TABLE_ENTRY(lookupTableOffOn),
|
||||
LOOKUP_TABLE_ENTRY(lookupTableUnit),
|
||||
|
@ -954,6 +955,11 @@ const clivalue_t valueTable[] = {
|
|||
{ "pinio_box", VAR_UINT8 | MASTER_VALUE | MODE_ARRAY, .config.array.length = PINIO_COUNT, PG_PINIOBOX_CONFIG, offsetof(pinioBoxConfig_t, permanentId) },
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//PG USB
|
||||
#ifdef USE_USB_CDC_HID
|
||||
{ "usb_hid_cdc", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_USB_CONFIG, offsetof(usbDev_t, type) },
|
||||
#endif
|
||||
};
|
||||
|
||||
const uint16_t valueTableEntryCount = ARRAYLEN(valueTable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue