summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7408d67)
- cleanly initialize pps[2]
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1672
e0336214-984f-0b4b-a45f-
81c69e1f0ede
#define DEBUGP(x, args ...) fprintf(stderr, "%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
#define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
#define DEBUGP(x, args ...) fprintf(stderr, "%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
#define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
+#else
+#define DEBUGP(x, args ...)
+#define DEBUGPC(x, args ...)
+#endif
+
extern const char *rfid_hexdump(const void *data, unsigned int len);
#ifndef ARRAY_SIZE
extern const char *rfid_hexdump(const void *data, unsigned int len);
#ifndef ARRAY_SIZE
#include "rfid_iso14443_common.h"
#include "rfid_iso14443_common.h"
-#if 0
-#ifdef DEBUGP
-#undef DEBUGP
-#define DEBUGP(x, ...)
-#endif
-#ifdef DEBUGPC
-#undef DEBUGPC
-#define DEBUGPC(x, ...)
-#endif
-#endif
-
static enum rfid_frametype l2_to_frame(unsigned int layer2)
{
switch (layer2) {
static enum rfid_frametype l2_to_frame(unsigned int layer2)
{
switch (layer2) {
ppss[0] = 0xd0 | (h->priv.tcl.cid & 0x0f);
ppss[1] = 0x11;
ppss[0] = 0xd0 | (h->priv.tcl.cid & 0x0f);
ppss[1] = 0x11;
/* FIXME: deal with different speed for each direction */
DrI = d_to_di(h, Dr);
/* FIXME: deal with different speed for each direction */
DrI = d_to_di(h, Dr);
#define SENDBUF_LEN 100
#define RECVBUF_LEN 40
#define SENDBUF_LEN 100
#define RECVBUF_LEN 40
-#if 0
-#ifdef DEBUGP
-#undef DEBUGP
-#define DEBUGP(x, ...)
-#define DEBUGPC(x, ...)
-#endif
-#endif
-
static
int Write1ByteToReg(struct rfid_asic_transport_handle *rath,
unsigned char reg, unsigned char value)
static
int Write1ByteToReg(struct rfid_asic_transport_handle *rath,
unsigned char reg, unsigned char value)