error searching
This commit is contained in:
parent
12f0f74c9c
commit
ce0ac6bec8
2 changed files with 6 additions and 3 deletions
|
@ -139,8 +139,8 @@ u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
|
|||
while (timeout)
|
||||
{
|
||||
err = sem_trywait(&sem->sem);
|
||||
// if (err != -1)
|
||||
// return err;
|
||||
if (err == 0)
|
||||
return err;
|
||||
udelay(1000);
|
||||
timeout--;
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ void sys_mbox_post(sys_mbox_t* mbox,void* msg)
|
|||
*/
|
||||
void sys_mutex_lock(sys_mutex_t* mutex)
|
||||
{
|
||||
sem_wait(mutex);
|
||||
sem_wait(mutex);
|
||||
}
|
||||
|
||||
/* sys_mutex_unlock(): unlock the given mutex
|
||||
|
|
|
@ -99,8 +99,11 @@
|
|||
#define NETIF_DEBUG LWIP_DBG_OFF
|
||||
#define TIMERS_DEBUG LWIP_DBG_OFF
|
||||
|
||||
|
||||
#if 0
|
||||
#define LWIP_TCPIP_CORE_LOCKING_INPUT 1
|
||||
#define LWIP_TCPIP_CORE_LOCKING 1
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue