examples: Add depends on

Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
This commit is contained in:
zhangshoukui
2024-12-31 14:48:22 +08:00
committed by Xiang Xiao
parent 366865723b
commit d404b846f9
26 changed files with 51 additions and 58 deletions

View File

@@ -6,6 +6,7 @@
config EXAMPLES_RFID_READUID
tristate "RFID Read UID example"
default n
depends on CL_MFRC522
---help---
Enable the RFID READUID example

View File

@@ -37,15 +37,10 @@
* Pre-processor Definitions
****************************************************************************/
#ifndef CONFIG_CL_MFRC522
# error "CONFIG_CL_MFRC522 is not defined in the configuration"
#endif
#ifndef CONFIG_EXAMPLES_RFID_READUID_DEVNAME
# define CONFIG_EXAMPLES_RFID_READUID_DEVNAME "/dev/rfid0"
#endif
/****************************************************************************
* Public Functions
****************************************************************************/