support posix
1. posix pthread.h: pthread, pthread_barrier, pthread_cond, pthread_mutex, , pthread_rwlock, pthread_spin, etc 2. posix semaphore.h: sem_* 3. posix mqueue.h: mq_* 4. posix time.h: timer_* 5. to support posix, add tos_barrier, tos_bitmap, tos_rwlock, tos_stopwatch, change name of k_task_t from a char * pointer to a char array. 6. sample, see examples\posix 7. project, see board\TencentOS_tiny_EVB_MX_Plus\KEIL\posix
This commit is contained in:
@@ -69,24 +69,6 @@
|
||||
/////////////////////////////////////////
|
||||
|
||||
|
||||
/////////////////////////////////////////
|
||||
// disable countdownlatch
|
||||
#ifdef TOS_CFG_COUNTDOWNLATCH_EN
|
||||
#undef TOS_CFG_COUNTDOWNLATCH_EN
|
||||
#endif
|
||||
#define TOS_CFG_COUNTDOWNLATCH_EN 0u
|
||||
/////////////////////////////////////////
|
||||
|
||||
|
||||
/////////////////////////////////////////
|
||||
// disable completion
|
||||
#ifdef TOS_CFG_COMPLETION_EN
|
||||
#undef TOS_CFG_COMPLETION_EN
|
||||
#endif
|
||||
#define TOS_CFG_COMPLETION_EN 0u
|
||||
/////////////////////////////////////////
|
||||
|
||||
|
||||
/////////////////////////////////////////
|
||||
// disable the "traditional" timer
|
||||
#ifdef TOS_CFG_TIMER_EN
|
||||
@@ -206,14 +188,6 @@
|
||||
#define TOS_CFG_SEM_EN 0u
|
||||
#endif
|
||||
|
||||
#ifndef TOS_CFG_COUNTDOWNLATCH_EN
|
||||
#define TOS_CFG_COUNTDOWNLATCH_EN 0u
|
||||
#endif
|
||||
|
||||
#ifndef TOS_CFG_COMPLETION_EN
|
||||
#define TOS_CFG_COMPLETION_EN 0u
|
||||
#endif
|
||||
|
||||
#ifndef TOS_CFG_TIMER_EN
|
||||
#define TOS_CFG_TIMER_EN 0u
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user