commit a765a9c94c16d52ac59a0bad14b2cc86bd6a108b
Author: ozh ouzaihuan@szjawest.cn
Date: Tue Mar 5 17:59:50 2019 +0800
添加nfc读卡器测试程序
new file: system/nfctest/Android.mk
new file: system/nfctest/nfcreader.c
diff --git a/system/nfctest/Android.mk b/system/nfctest/Android.mk
new file mode 100755
index 0000000…6b3af19
— /dev/null
+++ b/system/nfctest/Android.mk
@@ -0,0 +1,10 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_CLANG := true
+LOCAL_SRC_FILES := nfcreader.c
+LOCAL_MODULE := nfcreader
+LOCAL_SHARED_LIBRARIES := libcutils libbase
+
+include $(BUILD_EXECUTABLE)
diff --git a/system/nfctest/nfcreader.c b/system/nfctest/nfcreader.c
new file mode 100755
index 0000000…6890085
— /dev/null
+++ b/system/nfctest/nfcreader.c
@@ -0,0 +1,143 @@
+#include <hardware/hardware.h>
+#include <sys/epoll.h>
+#include <fcntl.h>
+#include <termios.h>
+#include <errno.h>