Hardware abstraction layer for libnfc:

Suppress any PN53x references in nfc.c
Improve nfc_driver_t struct to embedded HAL API
Merge macros from nfc-messages.h into nfc-internal.h
Remove useless files: nfc-messages.h, buses.h and chips.h
Implement HAL for ARYGON driver
Move send/receive callbacks from nfc_driver_t to internal chip io callbacks (since there are dedicated to pn53x framing)
This commit is contained in:
Romuald Conty
2011-03-05 10:06:52 +00:00
parent 9b202d1dbf
commit 0efa47880b
17 changed files with 153 additions and 178 deletions

View File

@@ -36,11 +36,10 @@ Thanks to d18c7db and Okko for example code
#include <usb.h>
#include <string.h>
#include "../drivers.h"
#include "../chips/pn53x.h"
#include "libnfc/drivers.h"
#include "libnfc/chips/pn53x.h"
#include <nfc/nfc.h>
#include <nfc/nfc-messages.h>
#define BUFFER_LENGTH 256
#define USB_TIMEOUT 0