Browse Source

pkg/lwip: use new sema implementation

pr/spi.typo
Victor Arino 6 years ago
parent
commit
49adbf24da
  1. 1
      pkg/lwip/contrib/sock/lwip_sock.c
  2. 4
      pkg/lwip/contrib/sys_arch.c

1
pkg/lwip/contrib/sock/lwip_sock.c

@ -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"

4
pkg/lwip/contrib/sys_arch.c

@ -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