Add an input driver for the modulino buttons module. This is a pluggable I2C board implementing three buttons and three LEDs, the I2C protocol is implemented on a microcontroller on the modulino board itself, the firmware for that is open source and can be updated using an Arduino sketch: Link: https://github.com/arduino/node_modulino_firmware Link: https://github.com/arduino-libraries/Modulino Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
64 lines
3.2 KiB
CMake
64 lines
3.2 KiB
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
zephyr_library_property(ALLOW_EMPTY TRUE)
|
|
|
|
# zephyr-keep-sorted-start
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_ADC_KEYS input_adc_keys.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_ANALOG_AXIS input_analog_axis.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_ANALOG_AXIS_SETTINGS input_analog_axis_settings.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_CAP12XX input_cap12xx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_CF1133 input_cf1133.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_CHSC6X input_chsc6x.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_CST816S input_cst816s.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_CY8CMBR3XXX input_cy8cmbr3xxx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_ESP32_TOUCH_SENSOR input_esp32_touch_sensor.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_FT5336 input_ft5336.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_GPIO_KBD_MATRIX input_gpio_kbd_matrix.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_GPIO_KEYS input_gpio_keys.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_GPIO_QDEC input_gpio_qdec.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_GT911 input_gt911.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_ILI2132A input_ili2132a.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_ITE_IT51XXX_KBD input_ite_it51xxx_kbd.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_ITE_IT8801_KBD input_ite_it8801_kbd.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_ITE_IT8XXX2_KBD input_ite_it8xxx2_kbd.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_KBD_MATRIX input_kbd_matrix.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_MODULINO_BUTTONS input_modulino_buttons.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_NPCX_KBD input_npcx_kbd.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_NUNCHUK input_nunchuk.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_PAT912X input_pat912x.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_PAW32XX input_paw32xx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_PINNACLE input_pinnacle.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_PMW3610 input_pmw3610.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_REALTEK_RTS5912_KBD input_realtek_rts5912_kbd.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_SBUS input_sbus.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_STM32_TSC_KEYS input_tsc_keys.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_STMPE811 input_stmpe811.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_TOUCH input_touch.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_VS1838B input_vs1838b.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_XEC_KBD input_xec_kbd.c)
|
|
zephyr_library_sources_ifdef(CONFIG_INPUT_XPT2046 input_xpt2046.c)
|
|
# zephyr-keep-sorted-stop
|
|
|
|
if (CONFIG_INPUT_SDL_TOUCH)
|
|
zephyr_library_sources(input_sdl_touch.c)
|
|
if (CONFIG_NATIVE_APPLICATION)
|
|
zephyr_library_sources(input_sdl_touch_bottom.c)
|
|
else()
|
|
target_sources(native_simulator INTERFACE input_sdl_touch_bottom.c)
|
|
endif()
|
|
endif()
|
|
|
|
if(CONFIG_NATIVE_LINUX_EVDEV)
|
|
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux)
|
|
zephyr_library_sources(linux_evdev.c)
|
|
if (CONFIG_NATIVE_APPLICATION)
|
|
zephyr_library_sources(linux_evdev_bottom.c)
|
|
else()
|
|
target_sources(native_simulator INTERFACE linux_evdev_bottom.c)
|
|
endif()
|
|
else()
|
|
message(FATAL_ERROR "CONFIG_NATIVE_LINUX_EVDEV only available on Linux")
|
|
endif()
|
|
endif()
|