mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Refactor USB toward generic target
- Move conditionals from pg/usb.c to common_defaults_post.h - Add detectPin to usbDev_s. - Bump PG version for usbDev_s. - Add resource manipulation for USB_DETECT.
This commit is contained in:
parent
27cbf0515d
commit
a2f39c8844
5 changed files with 24 additions and 17 deletions
|
@ -3825,6 +3825,9 @@ const cliResourceValue_t resourceTable[] = {
|
|||
DEFS( OWNER_RX_SPI_CS, PG_RX_SPI_CONFIG, rxSpiConfig_t, csnTag ),
|
||||
#endif
|
||||
DEFW( OWNER_GYRO_CS, PG_GYRO_DEVICE_CONFIG, gyroDeviceConfig_t, csnTag, 2 ),
|
||||
#ifdef USE_USB_DETECT
|
||||
DEFS( OWNER_USB_DETECT, PG_USB_CONFIG, usbDev_t, detectPin ),
|
||||
#endif
|
||||
};
|
||||
|
||||
#undef DEFS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue