pkg/lwip: use new sema implementation

pr/spi.typo
Victor Arino 7 years ago
parent 066db5857a
commit 49adbf24da

@ -19,6 +19,7 @@
#include "net/ipv4/addr.h"
#include "net/ipv6/addr.h"
#include "net/sock.h"
#include "timex.h"
#include "lwip/err.h"
#include "lwip/ip.h"

@ -59,9 +59,7 @@ void sys_mutex_free(sys_mutex_t *mutex)
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
{
if (sema_create((sema_t *)sem, (unsigned int)count) < 0) {
return ERR_VAL;
}
sema_create((sema_t *)sem, (unsigned int)count);
return ERR_OK;
}

Loading…
Cancel
Save