AppNearMe µNFC stack for the NXP PN532 chip License: You can use the stack free of charge to prototype with mbed; if you want to use the stack with your commercial product, get in touch!
Dependents: IOT_sensor_nfc AppNearMe_MuNFC_PN532_Test p2p_nfc_test NFCMoodLamp ... more
License
You can use the stack free of charge to prototype with mbed; if you want to use the stack with your commercial product, get in touch!
Diff: PN532/munfc/core/fwk.h
- Revision:
- 11:5be631376e5b
- Child:
- 13:6f98851e025b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PN532/munfc/core/fwk.h Wed Nov 07 18:19:09 2012 +0000 @@ -0,0 +1,51 @@ +/* + fwk.h + Copyright (c) Donatien Garnier 2012 + donatien.garnier@appnearme.com + http://www.appnearme.com/ +*/ + + +#ifndef FWK_H_ +#define FWK_H_ + +#include "nfc_config.h" + +//Standard types definition +#include "stdint.h" + +#include "stddef.h" + +//Definition of size_t on 32-bit arch +#if !defined (__SIZE_TYPE__) +typedef uint32_t size_t; +#endif + +#ifndef __cplusplus +typedef uint8_t bool; //Define boolean type for pure-C functions +#define true 1 +#define false 0 +#endif + +//NULL pointer definition +#ifndef NULL +#define NULL ((void*)0) +#endif + +//Error codes +#include "errors.h" + +//RTOS abstraction +#include "platform/rtos.h" + +//Debugging +#include "debug.h" + +//Buffer +#include "buffer.h" + +//Macros +#define MAX(a,b) (((a)>(b))?(a):(b)) +#define MIN(a,b) (((a)<(b))?(a):(b)) + +#endif /* FWK_H_ */