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
fwk.h
00001 /* 00002 fwk.h 00003 Copyright (c) Donatien Garnier 2012 00004 donatien.garnier@appnearme.com 00005 http://www.appnearme.com/ 00006 */ 00007 00008 00009 #ifndef FWK_H_ 00010 #define FWK_H_ 00011 00012 #include "nfc_config.h" 00013 00014 //Standard types definition 00015 #include "stdint.h" 00016 00017 #include "stddef.h" 00018 00019 //Definition of size_t on 32-bit arch 00020 #if !defined (__SIZE_TYPE__) 00021 typedef uint32_t size_t; 00022 #endif 00023 00024 #ifndef __cplusplus 00025 typedef uint8_t bool; //Define boolean type for pure-C functions 00026 #define true 1 00027 #define false 0 00028 #endif 00029 00030 //NULL pointer definition 00031 #ifndef NULL 00032 #define NULL ((void*)0) 00033 #endif 00034 00035 //Error codes 00036 #include "errors.h" 00037 00038 //RTOS abstraction 00039 #include "platform/platform_rtos.h" 00040 00041 //Debugging 00042 #include "debug.h" 00043 00044 //Buffer 00045 #include "buffer.h" 00046 00047 //Macros 00048 #define MAX(a,b) (((a)>(b))?(a):(b)) 00049 #define MIN(a,b) (((a)<(b))?(a):(b)) 00050 00051 #endif /* FWK_H_ */
Generated on Tue Jul 12 2022 17:28:36 by 1.7.2