-/*
- ============================================================================
- 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)