nuttx/drivers/contactless/Kconfig
Gregory Nutt 21aef0dd68 drivers/*/Kconfig: Consolidate driver Kconfig Files.
This commit does two things:

1. First, it reorganizes the driver Kconfig files so that each is self contained.  Before, a part of the driver configuration was in drivers/Kconfig and the rest was in in drivers/xyz/Konfig.  Now, all of the driver configuration is consolitated in the latter.

2. Second, this commit correct numerous serious errors introduced in a previous reorganization of the driver Kconfig files.  This was first noted by Nicholas Chin in PR270 for the case of the drivers/i2c/Kconfig but some examination indicates that the error was introduced into several other Kconfig files as well.

The nature of the introduced error was basically this:

- Nothing must intervene between the menuconfig selection and the following conditional configuration otpions.
- A previous PR erroneously introduced unconditional options between the menuconfig and the following confditional logic, thus corrupting the driver menus.

This error was easy to make because the driver Kconfig files were not well modularized.  Making them fully self-contained should eliminate this kind of error in the future.
2020-02-15 15:19:11 +01:00

67 lines
1.2 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
menuconfig DRIVERS_CONTACTLESS
bool "Contactless Device Support"
default n
---help---
Drivers for various contactless devices.
if DRIVERS_CONTACTLESS
config CL_MFRC522
bool "NXP MFRC522 ISO14443/Mifare Transceiver"
default n
select SPI
---help---
This options adds driver support for the MFRC522 ISO14443/Mifare chip.
if CL_MFRC522
config MFRC522_SPI_FREQ
int "SPI frequency for MFRC522"
default 1000000
depends on CL_MFRC522
config CL_MFRC522_DEBUG_TX
bool "trace TX frames"
default n
depends on DEBUG_CONTACTLESS
config CL_MFRC522_DEBUG_RX
bool "trace RX frames"
default n
depends on DEBUG_CONTACTLESS
endif # CL_MFRC522
config CL_PN532
bool "pn532 NFC-chip support"
default n
select SPI
---help---
This options adds driver support for the PN532 NFC chip.
if CL_PN532
config PN532_SPI_FREQ
int "SPI frequency for PN532"
default 1000000
depends on CL_PN532
config CL_PN532_DEBUG_TX
bool "trace TX frames"
default n
depends on DEBUG_CONTACTLESS
config CL_PN532_DEBUG_RX
bool "trace RX frames"
default n
depends on DEBUG_CONTACTLESS
endif # CL_PN532
endif # DRIVERS_CONTACTLESS