feat(lwip): Add multi-thread support

This commit is contained in:
Dong Heng
2018-06-25 17:46:53 +08:00
parent cccd058783
commit e912bc25fa
7 changed files with 151 additions and 90 deletions

View File

@ -55,6 +55,7 @@ typedef xTaskHandle sys_thread_t;
sys_sem_t* sys_thread_sem_init(void);
void sys_thread_sem_deinit(void);
sys_sem_t* sys_thread_sem_get(void);
err_t sys_mutex_trylock(sys_mutex_t *pxMutex);
#define LWIP_NETCONN_THREAD_SEM_ALLOC() sys_thread_sem_init()
#define LWIP_NETCONN_THREAD_SEM_FREE() sys_thread_sem_deinit()