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!
Revision 13:6f98851e025b, committed 2013-01-15
- Comitter:
- AppNearMe
- Date:
- Tue Jan 15 15:34:39 2013 +0000
- Parent:
- 12:6eddbfe6b015
- Commit message:
- renamed rtos.h to platform_rtos.h to prevent insludes mess
Changed in this revision
--- a/PN532/MuNFCMbedPlatform.cpp Wed Nov 07 18:22:51 2012 +0000 +++ b/PN532/MuNFCMbedPlatform.cpp Tue Jan 15 15:34:39 2013 +0000 @@ -25,7 +25,7 @@ #elif NFC_CONTROLLER == PN532 #include "munfc/platform/pn532_platform.h" #endif -#include "munfc/platform/rtos.h" +#include "munfc/platform/platform_rtos.h" #if NFC_CONTROLLER == PN512 void pn512_io_init()
--- a/PN532/munfc/core/fwk.h Wed Nov 07 18:22:51 2012 +0000 +++ b/PN532/munfc/core/fwk.h Tue Jan 15 15:34:39 2013 +0000 @@ -36,7 +36,7 @@ #include "errors.h" //RTOS abstraction -#include "platform/rtos.h" +#include "platform/platform_rtos.h" //Debugging #include "debug.h"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PN532/munfc/platform/platform_rtos.h Tue Jan 15 15:34:39 2013 +0000
@@ -0,0 +1,29 @@
+/*
+ rtos.h
+ Copyright (c) Donatien Garnier 2012
+ donatien.garnier@appnearme.com
+ http://www.appnearme.com/
+*/
+
+#ifndef RTOS_H_
+#define RTOS_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "core/fwk.h"
+
+struct rtos_semaphore; //To be defined by impl
+typedef struct rtos_semaphore rtos_semaphore_t;
+
+rtos_semaphore_t* rtos_semaphore_new(void); //Should return NULL if fails
+
+int rtos_semaphore_produce(rtos_semaphore_t* pSem);
+int rtos_semaphore_consume(rtos_semaphore_t* pSem, int timeout);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* RTOS_H_ */
--- a/PN532/munfc/platform/rtos.h Wed Nov 07 18:22:51 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-/*
- rtos.h
- Copyright (c) Donatien Garnier 2012
- donatien.garnier@appnearme.com
- http://www.appnearme.com/
-*/
-
-
-#ifndef RTOS_H_
-#define RTOS_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "core/fwk.h"
-
-struct rtos_semaphore; //To be defined by impl
-typedef struct rtos_semaphore rtos_semaphore_t;
-
-rtos_semaphore_t* rtos_semaphore_new(void); //Should return NULL if fails
-
-int rtos_semaphore_produce(rtos_semaphore_t* pSem);
-int rtos_semaphore_consume(rtos_semaphore_t* pSem, int timeout);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* RTOS_H_ */
AppNearMe Official