mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
Fixed compilation for NO_SYS==1
This commit is contained in:
parent
0030d1ade5
commit
3529349470
@ -61,6 +61,7 @@
|
|||||||
#include "lwip/mem.h"
|
#include "lwip/mem.h"
|
||||||
#include "lwip/sys.h"
|
#include "lwip/sys.h"
|
||||||
#include "lwip/stats.h"
|
#include "lwip/stats.h"
|
||||||
|
#include "lwip/err.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -43,14 +43,19 @@ extern "C" {
|
|||||||
/* For a totally minimal and standalone system, we provide null
|
/* For a totally minimal and standalone system, we provide null
|
||||||
definitions of the sys_ functions. */
|
definitions of the sys_ functions. */
|
||||||
typedef u8_t sys_sem_t;
|
typedef u8_t sys_sem_t;
|
||||||
|
typedef u8_t sys_mutex_t;
|
||||||
typedef u8_t sys_mbox_t;
|
typedef u8_t sys_mbox_t;
|
||||||
|
|
||||||
#define sys_sem_new(c) ((sys_sem_t)c)
|
#define sys_sem_new(s, c) ERR_OK
|
||||||
#define sys_sem_signal(s)
|
#define sys_sem_signal(s)
|
||||||
#define sys_sem_wait(s)
|
#define sys_sem_wait(s)
|
||||||
#define sys_arch_sem_wait(s,t)
|
#define sys_arch_sem_wait(s,t)
|
||||||
#define sys_sem_free(s)
|
#define sys_sem_free(s)
|
||||||
#define sys_mbox_new(s) 0
|
#define sys_mutex_new(mu) ERR_OK
|
||||||
|
#define sys_mutex_lock(mu)
|
||||||
|
#define sys_mutex_unlock(mu)
|
||||||
|
#define sys_mutex_free(mu)
|
||||||
|
#define sys_mbox_new(m, s) ERR_OK
|
||||||
#define sys_mbox_fetch(m,d)
|
#define sys_mbox_fetch(m,d)
|
||||||
#define sys_mbox_tryfetch(m,d)
|
#define sys_mbox_tryfetch(m,d)
|
||||||
#define sys_mbox_post(m,d)
|
#define sys_mbox_post(m,d)
|
||||||
@ -98,7 +103,7 @@ typedef void (*lwip_thread_fn)(void *arg);
|
|||||||
|
|
||||||
/** Create a new mutex
|
/** Create a new mutex
|
||||||
* @param mutex pointer to the mutex to create
|
* @param mutex pointer to the mutex to create
|
||||||
* @return a new
|
* @return a new mutex */
|
||||||
err_t sys_mutex_new(sys_mutex_t *mutex);
|
err_t sys_mutex_new(sys_mutex_t *mutex);
|
||||||
/** Lock a mutex
|
/** Lock a mutex
|
||||||
* @param mutex the mutex to lock */
|
* @param mutex the mutex to lock */
|
||||||
|
Loading…
Reference in New Issue
Block a user