NFC: Fix more IAR compilation issues

pull/7822/head
Donatien Garnier 2018-08-23 17:37:39 +01:00
parent 9cf8eedb63
commit fb5a0a3791
3 changed files with 3 additions and 4 deletions

View File

@ -211,7 +211,7 @@ void pn512_poll(nfc_transceiver_t *pTransceiver)
{
pn512_t *pPN512 = (pn512_t *) pTransceiver;
pPN512->nextFrameMode = pn512_transceive_mode_transceive;
return pn512_poll_hw(pPN512, pn512_transceiver_callback);
pn512_poll_hw(pPN512, pn512_transceiver_callback);
}
void pn512_set_crc(nfc_transceiver_t *pTransceiver, bool crc_out, bool crc_in)

View File

@ -52,7 +52,7 @@ typedef enum __pn512_transceive_mode {
pn512_transceive_mode_receive,
} pn512_transceive_mode_t;
typedef struct __pn512 {
struct __pn512 {
nfc_transceiver_t transceiver;
//Impl specific
pn512_registers_t registers;
@ -142,7 +142,7 @@ typedef struct __pn512 {
} anticollision;
};
} pn512_t;
};
nfc_err_t pn512_init(pn512_t *pPN512, nfc_transport_t *pTransport, nfc_scheduler_timer_t *pTimer);

View File

@ -30,7 +30,6 @@ extern "C" {
#include "stack/nfc_common.h"
#include "pn512_callback.h"
#include "pn512.h"
#include "pn512_rf.h"
typedef struct __pn512 pn512_t;