Fixed IAR warnings in NFC stack

pull/7822/head
Donatien Garnier 2018-08-29 19:26:19 +01:00
parent 913f219fc1
commit 3fa0c5e730
5 changed files with 8 additions and 8 deletions

View File

@ -30,10 +30,8 @@ extern "C" {
#include "stack/nfc_common.h"
#include "transceiver/transceiver.h"
typedef struct __pn512 pn512_t;
#include "pn512_callback.h"
#include "pn512_types.h"
#include "pn512_callback.h"
typedef enum __pn512_state {
pn512_state_ready,

View File

@ -24,12 +24,12 @@
#define PN512_CALLBACK_H_
#include "stack/nfc_common.h"
#include "pn512_types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct __pn512 pn512_t;
typedef void (*pn512_cb_t)(pn512_t *pPN512, nfc_err_t ret);
#ifdef __cplusplus

View File

@ -28,11 +28,10 @@ extern "C" {
#endif
#include "stack/nfc_common.h"
#include "pn512_types.h"
#include "pn512_callback.h"
#include "pn512.h"
typedef struct __pn512 pn512_t;
nfc_err_t pn512_framing_set(pn512_t *pPN512, nfc_framing_t framing);
nfc_err_t pn512_framing_crc_set(pn512_t *pPN512, bool out, bool in);

View File

@ -28,8 +28,7 @@ extern "C" {
#endif
#include "stack/nfc_common.h"
typedef struct __pn512 pn512_t;
#include "pn512_types.h"
void pn512_timer_config(pn512_t *pPN512, bool autostart, uint16_t prescaler, uint16_t countdown_value);

View File

@ -29,10 +29,14 @@ extern "C" {
#include "stack/nfc_common.h"
typedef struct __pn512 pn512_t;
typedef struct __pn512_registers {
int8_t registers_page;
} pn512_registers_t;
#ifdef __cplusplus
}
#endif