Improvement in STSW-ST25RFAL 3.0 source
Hi
We think the following impotentes should be done in STSW-ST25RFAL 3.0 source
1) Add to rfal_analogConfig.h, rfal_crc.h, rfal_iso15693_2.h header files.
#if defined( __cplusplus )
extern "C" {
#endif
otherwise this file makes it difficult with C++
2) Add to rfal_analogConfig.h header files.
#if !defined( __cplusplus )
typedef struct {
uint8_t id[sizeof(rfalAnalogConfigId)];
rfalAnalogConfigNum num;
rfalAnalogConfigRegAddrMaskVal regSet[];
} rfalAnalogConfig;
#else
struct rfalAnalogConfig;
#endif
C++ can't handle an empty array regSet[] in a struct
3) Add to st25r3916_aat.c source files.
#include <stdlib.h>
This file use abs().
In most compiler abs() is declared in stdlib.h or math.h
4) replace "string.h" with <string.h> in st25r95_com.c, st25r95_com_spi.c, st25r95_com_uart.c
C library Headerfile should included with <> instead ""
