]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - mt_rfid.c
-pthread added
[coffee/mt-apps.git] / mt_rfid.c
index 328350c74dc644a5d3ef00a4676b2582c7bbd109..3d4ab3b84f80023e38ffb3b612011ed3f87665d2 100644 (file)
--- a/mt_rfid.c
+++ b/mt_rfid.c
@@ -1,11 +1,6 @@
-/*
- ============================================================================
- Name        : main.c
- Author      : Digital Logic
- Version     : 1.0
- Copyright   :
- Description : Very simple test of uFR library
- ============================================================================
+/**
+ * mt_rfid.c
+ * poll the uFR reader and print JSON formatted card info to stdout.
  */
 
 #include <stdio.h>
 #include "mt_rfid.h"
 #include "uFCoder.h"
 
-#define READER_TYPE    1              //uFR type (1Mbps)
-#ifndef PORT_NAME
-#define PORT_NAME      "/dev/ttyUSB0" //"" for auto
-#endif
-#define PORT_INTERFACE 1              //Serial
-
 // really simple JSON helpers
 #define JSON_NUM(NAME) printf("\"" #NAME "\": %d", NAME)
 #define JSON_STR(NAME) printf("\"" #NAME "\": \"%s\"", NAME)