diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-08-28 15:25:37 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-08-28 15:25:37 +0200 |
commit | 3a66ae51c3f34108428e582ef693866d71496d16 (patch) | |
tree | 6a8ab3774af1b1077720671a92f40a92d5425bcf /src/driver | |
parent | e12d6d528705344628568000dc2fddb919457411 (diff) |
Expose configuration via Kconfig
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/Kconfig | 88 | ||||
-rw-r--r-- | src/driver/soft_i2c.cc | 3 |
2 files changed, 88 insertions, 3 deletions
diff --git a/src/driver/Kconfig b/src/driver/Kconfig new file mode 100644 index 0000000..49bfbdd --- /dev/null +++ b/src/driver/Kconfig @@ -0,0 +1,88 @@ +config meta_driver_adc +bool +config meta_driver_counter +bool +config meta_driver_i2c +bool +config meta_driver_neopixel +bool +config meta_driver_spi +bool +config meta_driver_stdin +bool +config meta_driver_timer +bool + +menu "Drivers" + +config driver_am2320 +bool "AM2320 TH Sensor" +depends on meta_driver_i2c + +config driver_bme280 +bool "BME280 TPH Sensor" +depends on meta_driver_i2c + +config driver_bme680 +bool "BME680 TPH+IAQ Sensor" +depends on meta_driver_i2c + +config driver_ccs811 +bool "CCS811 VOC Sensor" +depends on meta_driver_i2c + +config driver_dummy +bool "Dummy driver" + +config driver_eepom24lc64 +bool "24LC64 EEPROM" + +config driver_hcd1080 +bool "HDC1080 TH Sensor with Heated Plate" +depends on meta_driver_i2c + +config driver_lm75 +bool "LM75 Temperature Sensor" +depends on meta_driver_i2c +# depends on I2C + +config driver_max44006 +bool "MAX44006 RGB Sensor" +depends on meta_driver_i2c + +config driver_max44009 +bool "MAX44009 Ambient Light Sensor" +depends on meta_driver_i2c + +config driver_mmsimple +bool "MicroMoody simple" +depends on meta_driver_i2c + +config driver_mmsubstate +bool "MicroMoody with Sub-States" +depends on meta_driver_i2c + +config driver_mpu9250 +bool "MPU9250 Accelerometer/Gyroscope/Magnetometer" +depends on meta_driver_i2c + +config driver_nrf24l01 +bool "nRF24L01+ 2.4GHz Radio" +depends on meta_driver_spi + +config driver_resistive_load +bool "Resistive Load for Energy Model Generation Evaluation" + +config driver_s5851a +bool "S5851A LoRaWAN Radio" + +config driver_sharp96 +bool "sharp LS013B4DN 96x96px Transflective LC Display" +depends on meta_driver_spi + +config driver_soft_i2c +bool "Software I2C" +#depends on !driver_i2c +select meta_driver_i2c + +endmenu diff --git a/src/driver/soft_i2c.cc b/src/driver/soft_i2c.cc index 285caef..b03b9e1 100644 --- a/src/driver/soft_i2c.cc +++ b/src/driver/soft_i2c.cc @@ -7,9 +7,6 @@ #endif #ifdef SOFTI2C_TIMER -#ifdef TIMER_CYCLES -#error "SOFTI2C_TIMER and TIMER_CYCLES are mutually exclusive" -#endif #include "driver/timer.h" volatile unsigned char timer_done = 0; #endif |