From 0277b0faccb1e7af1b5f1b50e1108e542dcebf80 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Sat, 25 Apr 2020 22:43:04 +0530 Subject: [PATCH] drivers/pn532 : Expose to Kconfig Expose configurations to Kconfig --- drivers/Kconfig.net | 1 + drivers/pn532/Kconfig | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 drivers/pn532/Kconfig diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index f7fba01ebc..7a50dedf80 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -13,6 +13,7 @@ rsource "at86rf215/Kconfig" rsource "cc110x/Kconfig" rsource "dose/Kconfig" rsource "mrf24j40/Kconfig" +rsource "pn532/Kconfig" source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig" endmenu # Network Device Drivers diff --git a/drivers/pn532/Kconfig b/drivers/pn532/Kconfig new file mode 100644 index 0000000000..77d757cbdd --- /dev/null +++ b/drivers/pn532/Kconfig @@ -0,0 +1,23 @@ +# Copyright (c) 2020 Freie Universitaet Berlin +# +# 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. +# +menuconfig KCONFIG_MODULE_PN532 + bool "Configure PN532 driver" + depends on MODULE_PN532 + help + Configure the PN532 driver using Kconfig. + +if KCONFIG_MODULE_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_MODULE_PN532