2020-12-12 14:26:08 +01:00
|
|
|
set(priv_requires "ena" "ena-eke-proxy" "display" "rtc" "wifi-controller" )
|
|
|
|
|
|
|
|
if(CONFIG_ENA_INTERFACE_CUSTOM)
|
2020-12-15 13:12:35 +01:00
|
|
|
list(APPEND priv_requires "display-custom-ssd1306" "rtc-custom-ds3231")
|
|
|
|
elseif(CONFIG_ENA_INTERFACE_M5STICKC)
|
|
|
|
list(CONFIG_APPEND priv_requires "display-m5-st7735s" "rtc-m5-bm8563" "imu-m5-mpu6886" "pmu-m5-axp192")
|
|
|
|
elseif(CONFIG_ENA_INTERFACE_M5STICKC_PLUS)
|
|
|
|
list(APPEND priv_requires "display-m5-st7789" "rtc-m5-bm8563" "imu-m5-mpu6886" "pmu-m5-axp192")
|
|
|
|
elseif(CONFIG_ENA_INTERFACE_TTGO_T_WRISTBAND)
|
|
|
|
list(APPEND priv_requires "display-ttgo-st7735" "imu-ttgo-lsm9ds1")
|
2020-12-12 14:26:08 +01:00
|
|
|
else()
|
2020-12-15 13:12:35 +01:00
|
|
|
list(APPEND priv_requires "display-custom-ssd1306" "rtc-custom-ds3231") # uncomment for custom device with SSD1306 und DS3231
|
|
|
|
# list(APPEND priv_requires "display-m5-st7735s" "rtc-m5-bm8563" "imu-m5-mpu6886" "pmu-m5-axp192") # uncomment for M5StickC
|
|
|
|
# list(APPEND priv_requires "display-m5-st7789" "rtc-m5-bm8563" "imu-m5-mpu6886" "pmu-m5-axp192") # uncomment for M5StickC PLUS
|
|
|
|
# list(APPEND priv_requires "display-ttgo-st7735" "imu-ttgo-lsm9ds1") # uncomment for TTGO T-Wristband
|
2020-12-12 14:26:08 +01:00
|
|
|
endif()
|
|
|
|
|
2020-07-27 16:54:51 +02:00
|
|
|
idf_component_register(
|
|
|
|
SRCS
|
|
|
|
"interface.c"
|
2020-08-16 16:40:05 +02:00
|
|
|
"interface-main.c"
|
|
|
|
"interface-data.c"
|
2020-07-27 16:54:51 +02:00
|
|
|
"interface-datetime.c"
|
2020-12-12 14:26:08 +01:00
|
|
|
"interface-debug.c"
|
2020-12-06 12:48:12 +01:00
|
|
|
"interface-info.c"
|
2020-08-16 16:40:05 +02:00
|
|
|
"interface-input.c"
|
|
|
|
"interface-label.c"
|
|
|
|
"interface-report.c"
|
|
|
|
"interface-settings.c"
|
|
|
|
"interface-wifi.c"
|
|
|
|
INCLUDE_DIRS "."
|
2020-12-12 14:26:08 +01:00
|
|
|
PRIV_REQUIRES ${priv_requires}
|
2020-07-27 16:54:51 +02:00
|
|
|
)
|