Skip to content

Commit 3fa0c5e

Browse files
author
Donatien Garnier
committed
Fixed IAR warnings in NFC stack
1 parent 913f219 commit 3fa0c5e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

features/nfc/stack/transceiver/pn512/pn512.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ extern "C" {
3030
#include "stack/nfc_common.h"
3131
#include "transceiver/transceiver.h"
3232

33-
typedef struct __pn512 pn512_t;
34-
35-
#include "pn512_callback.h"
3633
#include "pn512_types.h"
34+
#include "pn512_callback.h"
3735

3836
typedef enum __pn512_state {
3937
pn512_state_ready,

features/nfc/stack/transceiver/pn512/pn512_callback.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
#define PN512_CALLBACK_H_
2525

2626
#include "stack/nfc_common.h"
27+
#include "pn512_types.h"
2728

2829
#ifdef __cplusplus
2930
extern "C" {
3031
#endif
3132

32-
typedef struct __pn512 pn512_t;
3333
typedef void (*pn512_cb_t)(pn512_t *pPN512, nfc_err_t ret);
3434

3535
#ifdef __cplusplus

features/nfc/stack/transceiver/pn512/pn512_rf.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ extern "C" {
2828
#endif
2929

3030
#include "stack/nfc_common.h"
31+
#include "pn512_types.h"
3132
#include "pn512_callback.h"
3233
#include "pn512.h"
3334

34-
typedef struct __pn512 pn512_t;
35-
3635
nfc_err_t pn512_framing_set(pn512_t *pPN512, nfc_framing_t framing);
3736

3837
nfc_err_t pn512_framing_crc_set(pn512_t *pPN512, bool out, bool in);

features/nfc/stack/transceiver/pn512/pn512_timer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ extern "C" {
2828
#endif
2929

3030
#include "stack/nfc_common.h"
31-
32-
typedef struct __pn512 pn512_t;
31+
#include "pn512_types.h"
3332

3433
void pn512_timer_config(pn512_t *pPN512, bool autostart, uint16_t prescaler, uint16_t countdown_value);
3534

features/nfc/stack/transceiver/pn512/pn512_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ extern "C" {
2929

3030
#include "stack/nfc_common.h"
3131

32+
typedef struct __pn512 pn512_t;
33+
3234
typedef struct __pn512_registers {
3335
int8_t registers_page;
3436
} pn512_registers_t;
3537

38+
39+
3640
#ifdef __cplusplus
3741
}
3842
#endif

0 commit comments

Comments
 (0)