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

71 lines
1.8 KiB
Plaintext
Raw Normal View History

# Copyright (c) 2020 Freie Universitaet Berlin
2021-01-05 11:02:43 +01:00
# 2021 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
2021-01-05 11:02:43 +01:00
2022-03-02 14:03:52 +01:00
menuconfig MODULE_PN532
bool
prompt "PN532 NFC reader" if !(MODULE_SAUL_DEFAULT && HAVE_PN532)
default (MODULE_SAUL_DEFAULT && HAVE_PN532)
depends on TEST_KCONFIG
depends on HAS_PERIPH_GPIO
depends on HAS_PERIPH_GPIO_IRQ
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_GPIO_IRQ
select MODULE_ZTIMER
select MODULE_ZTIMER_MSEC
2021-01-05 11:02:43 +01:00
2022-03-02 14:03:52 +01:00
if MODULE_PN532
2021-01-05 11:02:43 +01:00
config MODULE_PN532_I2C
bool "PN532 with I2C support"
2022-03-02 14:03:52 +01:00
default HAVE_PN532_I2C
2021-01-05 11:02:43 +01:00
depends on HAS_PERIPH_I2C
select MODULE_PERIPH_I2C
config MODULE_PN532_SPI
bool "PN532 with SPI support"
2022-03-02 14:03:52 +01:00
default HAVE_PN532_SPI
2021-01-05 11:02:43 +01:00
depends on HAS_PERIPH_SPI
select MODULE_PERIPH_SPI
2022-03-02 14:03:52 +01:00
endif # MODULE_PN532
config HAVE_PN532
2021-01-05 11:02:43 +01:00
bool
2022-03-02 14:03:52 +01:00
help
Indicates that a PN532 NFC reader is present.
2021-01-05 11:02:43 +01:00
2022-03-02 14:03:52 +01:00
config HAVE_PN532_I2C
bool
select HAVE_PN532
help
Indicates that a PN532 NFC reader is present on the i2c bus.
2021-01-05 11:02:43 +01:00
2022-03-02 14:03:52 +01:00
config HAVE_PN532_SPI
bool
select HAVE_PN532
help
Indicates that a PN532 NFC reader is present on the spi bus.
2021-01-05 11:02:43 +01:00
menuconfig KCONFIG_USEMODULE_PN532
bool "Configure PN532 driver"
depends on USEMODULE_PN532
help
Configure the PN532 driver using Kconfig.
if KCONFIG_USEMODULE_PN532
config PN532_BUFFER_LEN
int "Internal buffer size"
default 64
help
The internal buffer is used while reading and writing to PN532 Device.
For large NDEF files, the buffer size may be increased.
Otherwise the files may be written in chunks.
endif # KCONFIG_USEMODULE_PN532