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
platform_rtos.h
00001 /* 00002 rtos.h 00003 Copyright (c) Donatien Garnier 2012 00004 donatien.garnier@appnearme.com 00005 http://www.appnearme.com/ 00006 */ 00007 00008 #ifndef RTOS_H_ 00009 #define RTOS_H_ 00010 00011 #ifdef __cplusplus 00012 extern "C" { 00013 #endif 00014 00015 #include "core/fwk.h" 00016 00017 struct rtos_semaphore; //To be defined by impl 00018 typedef struct rtos_semaphore rtos_semaphore_t; 00019 00020 rtos_semaphore_t* rtos_semaphore_new(void); //Should return NULL if fails 00021 00022 int rtos_semaphore_produce(rtos_semaphore_t* pSem); 00023 int rtos_semaphore_consume(rtos_semaphore_t* pSem, int timeout); 00024 00025 #ifdef __cplusplus 00026 } 00027 #endif 00028 00029 #endif /* RTOS_H_ */
Generated on Tue Jul 12 2022 17:28:36 by 1.7.2