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/platform/rtos.h
- Revision:
- 3:0b949b2d3b55
- Parent:
- 0:480387549d89
--- a/PN532/munfc/platform/rtos.h Thu Jul 26 10:02:19 2012 +0000 +++ b/PN532/munfc/platform/rtos.h Tue Aug 07 21:55:12 2012 +0000 @@ -1,30 +1,30 @@ -/* - 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_ */ +/* + 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_ */