Romain Tartiere
c7d77d7664
Rearrange source code.
2010-04-07 14:37:19 +00:00
Romuald Conty
ba5dbb05d5
Put an annoying message in debug mode only.
2010-03-25 14:55:28 +00:00
Romuald Conty
c203ce837c
Prevent from annoying message when probing nfc devices.
2010-03-11 14:42:58 +00:00
Romuald Conty
63262331c6
Suppress warnings due to unused variable.
2010-02-17 14:57:03 +00:00
Romuald Conty
d97d017853
Move variable declarations at the beginning of function body to be able to compile using a stupid^W non C99 conform compiler under a non standard OS...
2010-02-17 14:48:41 +00:00
Romain Tartiere
19672806d2
Fix some more cc warnings.
2010-01-28 15:42:50 +00:00
Romuald Conty
2d4bdf28a1
Serial autoprobing is now DISABLED as default, fix Issue 58.
2010-01-18 11:23:07 +00:00
Romain Tartiere
3f8068b760
Include "config.h" at the beginning of all source code, remove it from headers.
...
While here distinguish licence comments using the /*- special comment delimiter.
2010-01-15 10:18:11 +00:00
Roel Verdult
15981b743e
fixed windows compiling issues
2010-01-13 16:23:06 +00:00
Roel Verdult
4179bb1918
ARYGON ADRB-USB 9600 baud note, removed invalid connection Mac OS X string for pn532 uart. This only applies for ARYGON devices since they use a silabs-usb-to-uart chip
2010-01-13 14:24:29 +00:00
Romuald Conty
e4ca9245ec
C99 compiler is a requirement so we don't need --enable-std99 anymore.
...
Define _XOPEN_SOURCE 600 using config.h
2010-01-12 17:58:13 +00:00
Romuald Conty
0b720d30cd
Avoid BUFSIZ usage since it will be a HUGE buffer under linux (8192 bytes).
2010-01-12 12:47:26 +00:00
Romuald Conty
f0acc73541
Fix compilation warnings. Fix Issue 52.
2010-01-12 12:36:43 +00:00
Romain Tartiere
73448612af
Increase _XOPEN_SOURCE to 600.
...
The snprintf() function conforms to C99. On FreeBSD, sys/cdefs.h instruct us that _XOPEN_SOURCE == 500 defines _POSIX_C_SOURCE as 199506 which in turn defines __ISO_C_VISIBLE as 1990. 600 is the minimal _XOPEN_SOURCE value we can use to allow us using C99 functions.
Reported by: tinderbox
2009-12-23 12:01:40 +00:00
Romuald Conty
20df0d785d
Speed up PN532_UART driver by removing useless delay. Thanks to Zuck for issue reporting.
2009-12-09 10:32:55 +00:00
Adam Laurie
b223ec5780
add pn531/pn533 _list_devices and _pick routines (plus minor fixes for acr122 and pn532_uart)
2009-12-07 21:13:36 +00:00
Romuald Conty
e5ba266420
Add list_devices capabilities to PN532_UART driver. Note: Theses functions exists for this driver only for convenience, please note that it can be anoying if there are others devices plugged on UART (ie. ttySx, ttyUSBx, COM, etc.)
2009-12-03 15:57:13 +00:00
Romain Tartiere
2b8232b9ab
Merge the includes-revamp branch into trunk.
2009-12-01 14:23:00 +00:00
Romain Tartiere
220bef3490
ACR122 devices support enhancements.
...
- Add driver agnostic nfc_pick_device(), nfc_list_devices();
- New API function: nfc_list_devices();
- PCSC Context sharing for acr122 driver;
- List all devices in nfc-list(1);
- Various code fixes and cleanup;
- Remove warnings when compiling;
- Merge r191:199 from trunk \_°< Coin!
2009-11-24 17:49:24 +00:00
Romain Tartiere
1af29561e8
Add device listing capabilities
...
- acr122: add acr122_pick_device(), acr122_list_devices();
- Add device name to device descriptions (nfc_device_desc_t) to select a given PCSC device;
- Use constants for driver names;
- Various code cleanups and enhancements.
2009-11-24 13:03:48 +00:00
Romuald Conty
2feedddbfe
Rename dev_config_option to nfc_device_option_t.
...
Use NULL instead of INVALID_DEVICE_INFO to know if device is valid (all occurences are now replaced).
2009-11-18 11:11:06 +00:00
Romuald Conty
2a0ff6c5d0
Rename chip_type to nfc_chip_t.
...
Rename dev_spec to nfc_device_spec_t.
Update configure.ac and autotools related files.
2009-11-18 10:52:13 +00:00
Romuald Conty
aa8bb42d9f
Remove nfc-defines.h public header.
...
Use NULL instead of INVALID_DEVICE_INFO to know if device is valid.
Make distcheck OK
2009-11-10 09:47:59 +00:00
Romuald Conty
854dc3aceb
Prefix defines.h, messages.h and types.h headers by "nfc-"
...
Rename dev_info struct to nfc_device_t
Some code cleanup
Rename pn531.h/c to pn531_usb.h/c
Rename pn533.h/c to pn533_usb.h/c
2009-11-09 11:23:33 +00:00
Romuald Conty
14a9112dea
It now compile using Autotools.
2009-11-04 10:14:17 +00:00
Romuald Conty
ab62855d80
First attempt to reorganize tree.
2009-11-03 14:51:14 +00:00