1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/ft5x06: remove unnecessary pseudomodules

This commit is contained in:
Leandro Lanzieri 2022-01-20 09:12:16 +01:00
parent 4eb58d74b5
commit 91012bc3f9
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
8 changed files with 11 additions and 108 deletions

View File

@ -28,7 +28,7 @@ config BOARD_STM32F723E_DISCO
select BOARD_HAS_LSE
select HAVE_SAUL_GPIO
select HAVE_FT6X06
select HAVE_FT5X06
select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC
# Workaround due to stdout only working with stdin enabled
select MODULE_STDIN if TEST_KCONFIG

View File

@ -5,7 +5,7 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
endif
ifneq (,$(filter touch_dev,$(USEMODULE)))
USEMODULE += ft6x06
USEMODULE += ft5x06
endif
# TODO: remove the stdin dependency

View File

@ -29,6 +29,6 @@ config BOARD_STM32F746G_DISCO
select BOARD_HAS_LSE
select HAVE_SAUL_GPIO
select HAVE_FT5336
select HAVE_FT5X06
source "$(RIOTBOARD)/common/stm32/Kconfig"

View File

@ -11,5 +11,5 @@ ifneq (,$(filter disp_dev,$(USEMODULE)))
endif
ifneq (,$(filter touch_dev,$(USEMODULE)))
USEMODULE += ft5336
USEMODULE += ft5x06
endif

View File

@ -13,97 +13,12 @@ config MODULE_FT5X06
select MODULE_PERIPH_I2C
select MODULE_ZTIMER
select MODULE_ZTIMER_MSEC
config MODULE_FT5606
bool "FT5606 touch panel driver"
select MODULE_FT5X06
config MODULE_FT5X16
bool "FT5X16 touch panel driver"
select MODULE_FT5X06
config MODULE_FT6X06
bool "FT6X06 touch panel driver"
select MODULE_FT5X06
config MODULE_FT6X36
bool "FT6X36 touch panel driver"
select MODULE_FT5X06
config MODULE_FT5X06I
bool "FT5X06I touch panel driver"
select MODULE_FT5X06
config MODULE_FT5336
bool "FT5336 touch panel driver"
select MODULE_FT5X06
config MODULE_FT3316
bool "FT3316 touch panel driver"
select MODULE_FT5X06
config MODULE_FT5436I
bool "FT5436I touch panel driver"
select MODULE_FT5X06
config MODULE_FT5336I
bool "FT5336I touch panel driver"
select MODULE_FT5X06
config MODULE_FT5X46
bool "FT5X46 touch panel driver"
select MODULE_FT5X06
config HAVE_FT5606
bool
select MODULE_FT5606 if MODULE_TOUCH_DEV
help
Indicates that an FT5606 touch panel is present.
This driver is compatible with the following controllers: ft5x06, ft5606, ft5x16, ft6x06,
ft6x36, ft5x06i, ft5336, ft3316, ft5436i, ft5336i and ft5x46.
config HAVE_FT5X16
config HAVE_FT5X06
bool
select MODULE_FT5X16 if MODULE_TOUCH_DEV
select MODULE_FT5X06 if MODULE_TOUCH_DEV
help
Indicates that an FT5X16 touch panel is present.
config HAVE_FT6X06
bool
select MODULE_FT6X06 if MODULE_TOUCH_DEV
help
Indicates that an FT6X06 touch panel is present.
config HAVE_FT6X36
bool
select MODULE_FT6X36 if MODULE_TOUCH_DEV
help
Indicates that an FT6X36 touch panel is present.
config HAVE_FT5X06I
bool
select MODULE_FT5X06I if MODULE_TOUCH_DEV
help
Indicates that an FT5X06I touch panel is present.
config HAVE_FT5336
bool
select MODULE_FT5336 if MODULE_TOUCH_DEV
help
Indicates that an FT5336 touch panel is present.
config HAVE_FT3316
bool
select MODULE_FT3316 if MODULE_TOUCH_DEV
help
Indicates that an FT3316 touch panel is present.
config HAVE_FT5436I
bool
select MODULE_FT5436I if MODULE_TOUCH_DEV
help
Indicates that an FT5436I touch panel is present.
config HAVE_FT5X46
bool
select MODULE_FT5X46 if MODULE_TOUCH_DEV
help
Indicates that an FT5X46 touch panel is present.
Indicates that an FT5X06 touch panel is present.

View File

@ -1,13 +1,2 @@
USEMODULE_INCLUDES_ft5x06 := $(LAST_MAKEFILEDIR)/include
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_ft5x06)
PSEUDOMODULES += ft5606
PSEUDOMODULES += ft5x16
PSEUDOMODULES += ft6x06
PSEUDOMODULES += ft6x36
PSEUDOMODULES += ft5x06i
PSEUDOMODULES += ft5336
PSEUDOMODULES += ft3316
PSEUDOMODULES += ft5436i
PSEUDOMODULES += ft5336i
PSEUDOMODULES += ft5x46

View File

@ -1,7 +1,6 @@
BOARD ?= stm32f746g-disco
include ../Makefile.tests_common
DRIVER ?= ft5336
USEMODULE += $(DRIVER)
USEMODULE += ft5x06
include $(RIOTBASE)/Makefile.include

View File

@ -1,3 +1,3 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_FT5336=y
CONFIG_MODULE_FT5X06=y