Philippe Teuwen
af57df532b
uart drivers: missing pn53x_data_free() on some error handling branches
2013-03-18 00:21:03 +01:00
Philippe Teuwen
5f70bdc699
uart drivers: missing nfc_device_free() on some error handling branches
2013-03-17 23:52:54 +01:00
Philippe Teuwen
2e801a62d5
uart drivers: missing uart_close() on some error handling branches
2013-03-17 23:52:43 +01:00
Philippe Teuwen
c1372a009f
uart drivers: fix missing free(ndd.port)
2013-03-17 22:54:15 +01:00
Philippe Teuwen
77838b894c
config parser: missing fclose()
2013-03-17 22:19:49 +01:00
Philippe Teuwen
ca7477e935
UART drivers: fix double free() of serial port info
...
Fixes issue 242
2013-03-16 12:25:28 +01:00
Julien Schueller
8485996f13
Fix cmake build failure under linux
...
The LIBUSB_FOUND variable was used before the libusb detection was performed.
Fixes issue 240.
2013-03-12 20:54:50 +01:00
Philippe Teuwen
ecc12d28aa
quick_start_example1.c: avoid using warnx() to remove err.h dependency
...
err.h is not available under Windows and the goal of this example is not to learn how to get around that problem ;)
2013-03-12 17:46:04 +01:00
Philippe Teuwen
e70a3314bf
Update ChangeLog & make style
2013-03-12 17:07:09 +01:00
Philippe Teuwen
20e51e9752
nfc-mfclassic: add option to allow using keyfile from another card
2013-03-12 15:39:57 +01:00
Philippe Teuwen
16161e1a68
nfc-mfclassic: detect 2K MFP via RATS
2013-03-12 14:15:04 +01:00
Philippe Teuwen
d019f9729d
nfc-anticol: fix ATS length
2013-03-12 12:23:15 +01:00
Philippe Teuwen
56ea2e65dc
nfc-mfclassic: use smaller files for cards < 4k
2013-03-12 10:56:57 +01:00
Philippe Teuwen
94617366a7
nfc-mfclassic: abort if expected UID is not matching real card
2013-03-12 10:56:20 +01:00
Philippe Teuwen
bb7b05681e
nfc-mfclassic: fix reporting of processed blocks number
2013-03-12 10:55:45 +01:00
Philippe Teuwen
a3f4145a2e
Add pn532_spi author to AUTHORS
2013-03-10 16:33:53 +01:00
Philippe Teuwen
dd209460b1
Update ChangeLog
2013-03-10 16:32:28 +01:00
Philippe Teuwen
baa0f9ae36
Unify copyright notices
2013-03-10 16:18:22 +01:00
Philippe Teuwen
d683a98065
Merge branch 'master' into pn532_spi
...
* master:
Unify copyright notices & update authors lists
Update ChangeLog
2013-03-10 16:17:59 +01:00
Philippe Teuwen
bf164220ee
Unify copyright notices & update authors lists
2013-03-10 16:15:23 +01:00
Philippe Teuwen
a4a531068f
Update ChangeLog
2013-03-10 00:32:05 +01:00
Philippe Teuwen
ec99e9033a
pn532_spi: use new connstring_decode()
...
Fix cppcheck warning "Non reentrant function 'strtok' called"
2013-03-10 00:29:01 +01:00
Philippe Teuwen
759cd106e5
Merge branch 'master' into pn532_spi
...
* master:
New connstring_decode() fix cppcheck warning "Non reentrant function 'strtok' called"
Update Changelog
Update NEWS & Changelog
Forgot to commit new log internal header file
Remove log-printf from CMakefile
Add log_internal.h to Makefile
Creating log_internal.h for log_*put_internal() prototypes
log_win32: declare log_output_debug() static
Merge log-printf.c into log.c, inline with prototypes in log.h & platform files log_*.c
2013-03-10 00:22:27 +01:00
Philippe Teuwen
cc03f84636
New connstring_decode() fix cppcheck warning "Non reentrant function 'strtok' called"
2013-03-10 00:20:52 +01:00
Philippe Teuwen
59271d27e9
Update Changelog
2013-03-09 16:33:51 +01:00
Philippe Teuwen
e7f4d0778e
Update NEWS & Changelog
2013-03-09 11:27:56 +01:00
Philippe Teuwen
38966cb2fb
Forgot to commit new log internal header file
2013-03-09 10:56:51 +01:00
Philippe Teuwen
ad8b338a7b
Remove log-printf from CMakefile
2013-03-09 10:41:25 +01:00
Philippe Teuwen
a9e3365d98
Add log_internal.h to Makefile
2013-03-09 10:41:07 +01:00
Philippe Teuwen
6a110b3849
Creating log_internal.h for log_*put_internal() prototypes
...
Fixed warning "no previous prototype for function" in log_posix.c
2013-03-09 01:00:21 +01:00
Philippe Teuwen
7e26aa368d
log_win32: declare log_output_debug() static
2013-03-09 00:47:21 +01:00
Philippe Teuwen
f19d233fad
Merge log-printf.c into log.c, inline with prototypes in log.h & platform files log_*.c
2013-03-09 00:46:45 +01:00
Philippe Teuwen
262555d568
Fix cppcheck warning "Non reentrant function 'readdir' called"
2013-03-08 23:50:03 +01:00
Philippe Teuwen
8e2effdc53
Fix cppcheck warning "scanf without field width limits can crash with huge input data"
2013-03-08 23:43:41 +01:00
Philippe Teuwen
ff11c8ac87
Fix cppcheck warning "Obsolete function 'usleep' called"
2013-03-08 23:30:21 +01:00
Philippe Teuwen
05b9cde966
Merge branch 'master' into pn532_spi
...
* master: (43 commits)
Windows: workaround as libusb is not automatically detected by CMake
Add usbbus to Makefile.am EXTRA_DIST
make style
Add log_posix to Makefile.am
Split logging internals so that platforms may choose additional or alternate spew mechanisms
More explicitely ignoring return value as suggested by Ludovic
Windows: Clean up all compiler warnings and link warnings
API change
make style
pn53x-sam: fix print_nfc_target
Convert by value passing of nfc_target to pointer for str_nfc_target and nfc_initiator_target_is_present
Windows: Fix bug when compiling without libusb: skip usbbus.c
Windows: Fix compilation due to new usbbus file
Fix bug when compiling without libusb: skip usbbus.c
Fix scan-build warning: cast increases required alignment from 1 to 4
Fix cppcheck warning "Obsolete function 'usleep' called"
Avoid warning about ignoring return value of 'read'
Fix cppcheck warning "Non reentrant function 'readdir' called"
conf.h: make it more standard
uart_posix.c: remove redundant include
...
2013-03-08 23:00:44 +01:00
Philippe Teuwen
3ac1d64b4f
Windows: workaround as libusb is not automatically detected by CMake
...
Fixes issue 238
2013-03-08 08:15:40 +01:00
Philippe Teuwen
5704b668b7
Add usbbus to Makefile.am EXTRA_DIST
2013-03-08 00:35:36 +01:00
Philippe Teuwen
fef6517e27
make style
2013-03-08 00:35:04 +01:00
Philippe Teuwen
37cf7554d9
Add log_posix to Makefile.am
2013-03-08 00:34:14 +01:00
Alex Lian
b3c6ea86ad
Split logging internals so that platforms may choose additional or alternate spew mechanisms
...
In the case of windows, allow for the OutputDebugString call in addition to logging to stderr.
Useful for the dll scenario and debugging in Visual Studio.
2013-03-07 10:36:33 +01:00
Philippe Teuwen
563054d2a2
More explicitely ignoring return value as suggested by Ludovic
2013-03-07 10:34:17 +01:00
Alex Lian
7b917f9a8b
Windows: Clean up all compiler warnings and link warnings
...
- Fixed the suppression of the auto-fixup for linking against MS built libs
- Fixed all the formatting warnings by shifting to inttypes.h specifiers
- shifted to %lu for DWORD printf
2013-03-07 09:37:36 +01:00
Philippe Teuwen
bd961222a3
API change
2013-03-07 09:27:45 +01:00
Philippe Teuwen
d8a93217ff
make style
2013-03-07 09:17:27 +01:00
Philippe Teuwen
181cd914d5
pn53x-sam: fix print_nfc_target
2013-03-07 09:17:11 +01:00
Alex Lian
c72846e3c6
Convert by value passing of nfc_target to pointer for str_nfc_target and nfc_initiator_target_is_present
...
This becomes more consistent with all other pass by pointer of most structures.
Additionally, this should lessen stack memory usage, as building strings with str_nfc_target would push the target (283 bytes) plus then a copy of the info objects (up to 275) onto the stack as it dives into the sprintf functions.
Lastly, this makes my attempt at a .NET wrapper easier, as I can make passing by pointer work, but passing by value seems to bomb on the interop right now.
2013-03-07 09:16:33 +01:00
Philippe Teuwen
a262be5633
Windows: Fix bug when compiling without libusb: skip usbbus.c
2013-03-07 08:09:32 +01:00
Alex Lian
f8d8052866
Windows: Fix compilation due to new usbbus file
2013-03-07 08:05:31 +01:00
Philippe Teuwen
008158090c
Fix bug when compiling without libusb: skip usbbus.c
2013-03-07 00:43:35 +01:00