mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 16:47:34 +08:00
Initial Kconfig implementation in CMake
Used fmuk66-v3 as test case
This commit is contained in:
committed by
Daniel Agar
parent
4b89ff29ce
commit
4044fbd4a0
+186
-41
@@ -1,86 +1,231 @@
|
||||
|
||||
menuconfig ADC
|
||||
bool "ADC Support"
|
||||
menu "ADC"
|
||||
source src/drivers/adc/Kconfig
|
||||
endmenu
|
||||
|
||||
menuconfig DRIVERS_BAROMETER
|
||||
bool "Barometer"
|
||||
default n
|
||||
---help---
|
||||
Enable support for ADC
|
||||
Enable support for Barometers
|
||||
|
||||
menuconfig BAROMETER
|
||||
bool "Barometer Support"
|
||||
if DRIVERS_BAROMETER
|
||||
source src/drivers/barometer/Kconfig
|
||||
endif #DRIVERS_BAROMETER
|
||||
|
||||
menuconfig DRIVERS_BATT_SMBUS
|
||||
bool "batt smbus"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available barometer drivers
|
||||
|
||||
menuconfig BOOTLOADERS
|
||||
bool "BOOTLOADERS Support"
|
||||
Enable support for batt smbus
|
||||
|
||||
menuconfig DRIVERS_BOOTLOADERS
|
||||
bool "BOOTLOADERS"
|
||||
default n
|
||||
---help---
|
||||
Enable support for bootloaders
|
||||
|
||||
menuconfig DIFFERENTIAL_PRESSURE
|
||||
bool "Differential pressure Support"
|
||||
menuconfig DRIVERS_CAMERA_CAPTURE
|
||||
bool "camera capture"
|
||||
default n
|
||||
---help---
|
||||
Enable support for camera capture
|
||||
|
||||
menuconfig DRIVERS_CAMERA_TRIGGER
|
||||
bool "camera trigger"
|
||||
default n
|
||||
---help---
|
||||
Enable support for camera trigger
|
||||
|
||||
menuconfig DRIVERS_DIFFERENTIAL_PRESSURE
|
||||
bool "Differential pressure"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available differential pressure drivers
|
||||
|
||||
menuconfig GPS
|
||||
bool "GPS Support"
|
||||
menuconfig DRIVERS_DISTANCE_SENSOR
|
||||
bool "distance sensor"
|
||||
default n
|
||||
---help---
|
||||
Enable support for distance sensor
|
||||
|
||||
menuconfig DRIVERS_DSHOT
|
||||
bool "dshot"
|
||||
default n
|
||||
---help---
|
||||
Enable support for dshot
|
||||
|
||||
menuconfig DRIVERS_GPS
|
||||
bool "GPS"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available GPS drivers
|
||||
|
||||
menuconfig IMU
|
||||
bool "IMU Support"
|
||||
menuconfig DRIVERS_HEATER
|
||||
bool "heater"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available IMU drivers
|
||||
Enable support for heater
|
||||
|
||||
menuconfig LIGHTS
|
||||
bool "Lights Support"
|
||||
default n
|
||||
---help---
|
||||
Enable support for lights
|
||||
|
||||
if LIGHTS
|
||||
#source src/drivers/lights/Kconfig
|
||||
endif #LIGHTS
|
||||
menu "IMU"
|
||||
source src/drivers/imu/Kconfig
|
||||
endmenu
|
||||
|
||||
menuconfig MAGNETOMETER
|
||||
bool "Magnetometer Support"
|
||||
menuconfig DRIVERS_IRLOCK
|
||||
bool "irlock"
|
||||
default n
|
||||
---help---
|
||||
Enable support for irlock
|
||||
|
||||
menu "Lights"
|
||||
source src/drivers/lights/Kconfig
|
||||
endmenu
|
||||
|
||||
menuconfig DRIVERS_LINUX_PWM_OUT
|
||||
bool "linux pwm out"
|
||||
default n
|
||||
---help---
|
||||
Enable support for linux pwm out
|
||||
|
||||
menuconfig DRIVERS_MAGNETOMETER
|
||||
bool "Magnetometer"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available magnetometer drivers
|
||||
|
||||
menuconfig OPTICAL_FLOW
|
||||
bool "Optical flow Support"
|
||||
menuconfig DRIVERS_OPTICAL_FLOW
|
||||
bool "Optical flow"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available optical flow drivers
|
||||
|
||||
menuconfig PWM_OUT
|
||||
bool "PWM Out Support"
|
||||
|
||||
menuconfig DRIVERS_OSD
|
||||
bool "osd"
|
||||
default n
|
||||
---help---
|
||||
Enable support for PWM Out
|
||||
Enable support for osd
|
||||
|
||||
menuconfig SAFETY_BUTTON
|
||||
bool "Safety button Support"
|
||||
menuconfig DRIVERS_PCA9685
|
||||
bool "pca9685"
|
||||
default n
|
||||
---help---
|
||||
Enable support for Safety button
|
||||
Enable support for pca9685
|
||||
|
||||
menuconfig TONE_ALARM
|
||||
bool "Tone alarm Support"
|
||||
menuconfig DRIVERS_PCA9685_PWM_OUT
|
||||
bool "pca9685 pwm out"
|
||||
default n
|
||||
---help---
|
||||
Enable support for pca9685 pwm out
|
||||
|
||||
menuconfig DRIVERS_POWER_MONITOR
|
||||
bool "power monitor"
|
||||
default n
|
||||
---help---
|
||||
Enable support for power monitor
|
||||
|
||||
menuconfig DRIVERS_PROTOCOL_SPLITTER
|
||||
bool "protocol splitter"
|
||||
default n
|
||||
---help---
|
||||
Enable support for protocol splitter
|
||||
|
||||
menuconfig DRIVERS_PWM_INPUT
|
||||
bool "pwm input"
|
||||
default n
|
||||
---help---
|
||||
Enable support for pwm input
|
||||
|
||||
menuconfig DRIVERS_PWM_OUT
|
||||
bool "pwm out"
|
||||
default n
|
||||
---help---
|
||||
Enable support for pwm out
|
||||
|
||||
menuconfig DRIVERS_PWM_OUT_SIM
|
||||
bool "pwm out sim"
|
||||
default n
|
||||
---help---
|
||||
Enable support for pwm out sim
|
||||
|
||||
menuconfig DRIVERS_PX4IO
|
||||
bool "px4io"
|
||||
default n
|
||||
---help---
|
||||
Enable support for px4io
|
||||
|
||||
menuconfig DRIVERS_QSHELL
|
||||
bool "qshell"
|
||||
default n
|
||||
---help---
|
||||
Enable support for qshell
|
||||
|
||||
menuconfig DRIVERS_RC_INPUT
|
||||
bool "rc input"
|
||||
default n
|
||||
---help---
|
||||
Enable support for rc input
|
||||
|
||||
menuconfig DRIVERS_ROBOCLAW
|
||||
bool "roboclaw"
|
||||
default n
|
||||
---help---
|
||||
Enable support for roboclaw
|
||||
|
||||
menuconfig DRIVERS_RPI_RC_IN
|
||||
bool "rpi rc in"
|
||||
default n
|
||||
---help---
|
||||
Enable support for rpi rc in
|
||||
|
||||
menuconfig DRIVERS_RPM
|
||||
bool "rpm"
|
||||
default n
|
||||
---help---
|
||||
Enable support for rpm
|
||||
|
||||
menuconfig DRIVERS_SAFETY_BUTTON
|
||||
bool "safety button"
|
||||
default n
|
||||
---help---
|
||||
Enable support for safety button
|
||||
|
||||
menuconfig DRIVERS_SPEKTRUM_RC
|
||||
bool "spektrum rc"
|
||||
default n
|
||||
---help---
|
||||
Enable support for spektrum rc
|
||||
|
||||
menuconfig DRIVERS_TELEMETRY
|
||||
bool "telemetry"
|
||||
default n
|
||||
---help---
|
||||
Enable support for telemetry
|
||||
|
||||
menuconfig DRIVERS_TEST_PPM
|
||||
bool "test ppm"
|
||||
default n
|
||||
---help---
|
||||
Enable support for test ppm
|
||||
|
||||
menuconfig DRIVERS_TONE_ALARM
|
||||
bool "Tone alarm"
|
||||
default n
|
||||
---help---
|
||||
Enable support for tone alarm
|
||||
|
||||
menuconfig UAVCAN_V1
|
||||
bool "UAVCANv1 Support"
|
||||
menuconfig DRIVERS_UAVCAN
|
||||
bool "uavcan"
|
||||
default n
|
||||
---help---
|
||||
Enable support for uavcan
|
||||
|
||||
menuconfig DRIVERS_UAVCAN_V1
|
||||
bool "UAVCANv1"
|
||||
default n
|
||||
---help---
|
||||
Enable support for UAVCANv1
|
||||
|
||||
if UAVCAN_V1
|
||||
if DRIVERS_UAVCAN_V1
|
||||
source src/drivers/uavcan_v1/Kconfig
|
||||
endif #UAVCAN_V1
|
||||
endif #DRIVERS_UAVCAN_V1
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
menuconfig DRIVERS_ADC_ADS1115
|
||||
bool "ADC ADS1115"
|
||||
default n
|
||||
---help---
|
||||
Enable support for ADS1115
|
||||
|
||||
menuconfig DRIVERS_ADC_BOARD_ADC
|
||||
bool "Board ADC"
|
||||
default n
|
||||
---help---
|
||||
Enable support for Board ADC
|
||||
@@ -0,0 +1,53 @@
|
||||
menuconfig DRIVERS_BAROMETER_BMP280
|
||||
bool "bmp280"
|
||||
default n
|
||||
---help---
|
||||
Enable support for bmp280
|
||||
|
||||
menuconfig DRIVERS_BAROMETER_BMP388
|
||||
bool "bmp388"
|
||||
default n
|
||||
---help---
|
||||
Enable support for bmp388
|
||||
|
||||
menuconfig DRIVERS_BAROMETER_DPS310
|
||||
bool "dps310"
|
||||
default n
|
||||
---help---
|
||||
Enable support for dps310
|
||||
|
||||
menuconfig DRIVERS_BAROMETER_LPS22HB
|
||||
bool "lps22hb"
|
||||
default n
|
||||
---help---
|
||||
Enable support for lps22hb
|
||||
|
||||
menuconfig DRIVERS_BAROMETER_LPS25H
|
||||
bool "lps25h"
|
||||
default n
|
||||
---help---
|
||||
Enable support for lps25h
|
||||
|
||||
menuconfig DRIVERS_BAROMETER_LPS33HW
|
||||
bool "lps33hw"
|
||||
default n
|
||||
---help---
|
||||
Enable support for lps33hw
|
||||
|
||||
menuconfig DRIVERS_BAROMETER_MPL3115A2
|
||||
bool "mpl3115a2"
|
||||
default n
|
||||
---help---
|
||||
Enable support for mpl3115a2
|
||||
|
||||
menuconfig DRIVERS_BAROMETER_MS5611
|
||||
bool "ms5611"
|
||||
default n
|
||||
---help---
|
||||
Enable support for ms5611
|
||||
|
||||
menuconfig DRIVERS_BAROMETER_TCBP001TA
|
||||
bool "tcbp001ta"
|
||||
default n
|
||||
---help---
|
||||
Enable support for tcbp001ta
|
||||
@@ -0,0 +1,59 @@
|
||||
menuconfig DRIVERS_IMU_ADIS16477
|
||||
bool "adis16477"
|
||||
default n
|
||||
---help---
|
||||
Enable support for adis16477
|
||||
|
||||
menuconfig DRIVERS_IMU_ADIS16497
|
||||
bool "adis16497"
|
||||
default n
|
||||
---help---
|
||||
Enable support for adis16497
|
||||
|
||||
menuconfig DRIVERS_IMU_ANALOG_DEVICES
|
||||
bool "analog devices"
|
||||
default n
|
||||
---help---
|
||||
Enable support for analog devices
|
||||
|
||||
menuconfig DRIVERS_IMU_BOSCH
|
||||
bool "bosch"
|
||||
default n
|
||||
---help---
|
||||
Enable support for bosch
|
||||
|
||||
menuconfig DRIVERS_IMU_FXAS21002C
|
||||
bool "fxas21002c"
|
||||
default n
|
||||
---help---
|
||||
Enable support for fxas21002c
|
||||
|
||||
menuconfig DRIVERS_IMU_FXOS8701CQ
|
||||
bool "fxos8701cq"
|
||||
default n
|
||||
---help---
|
||||
Enable support for fxos8701cq
|
||||
|
||||
menuconfig DRIVERS_IMU_INVENSENSE
|
||||
bool "invensense"
|
||||
default n
|
||||
---help---
|
||||
Enable support for invensense
|
||||
|
||||
menuconfig DRIVERS_IMU_L3GD20
|
||||
bool "l3gd20"
|
||||
default n
|
||||
---help---
|
||||
Enable support for l3gd20
|
||||
|
||||
menuconfig DRIVERS_IMU_LSM303D
|
||||
bool "lsm303d"
|
||||
default n
|
||||
---help---
|
||||
Enable support for lsm303d
|
||||
|
||||
menuconfig DRIVERS_IMU_ST
|
||||
bool "st"
|
||||
default n
|
||||
---help---
|
||||
Enable support for st
|
||||
@@ -0,0 +1,26 @@
|
||||
menuconfig DRIVERS_LIGHTS_BLINKM
|
||||
bool "Blinkm"
|
||||
default n
|
||||
---help---
|
||||
Enable support for blinkm lights
|
||||
|
||||
menuconfig DRIVERS_LIGHTS_NEOPIXEL
|
||||
bool "Neopixel"
|
||||
default n
|
||||
---help---
|
||||
Enable support for Neopixel lights
|
||||
|
||||
menuconfig DRIVERS_LIGHTS_RGBLED
|
||||
bool "RGB Led"
|
||||
---help---
|
||||
Enable support for RGB led
|
||||
|
||||
menuconfig DRIVERS_LIGHTS_RGBLED_PWM
|
||||
bool "RGB Led PWM"
|
||||
---help---
|
||||
Enable support for RGB PWM led
|
||||
|
||||
menuconfig DRIVERS_LIGHTS_RGBLED_NCP5623C
|
||||
bool "RGB Led NCP5623C"
|
||||
---help---
|
||||
Enable support for RGB NCP5623C led
|
||||
Reference in New Issue
Block a user