e:/hudson/workspace/MityDSP MDK Release/trunk/sw/inc/lwip_port/arch/sys_arch.h File Reference
Header file for the MityDSP lwIP architecture definition.
More...
#include <std.h>
#include <lck.h>
#include <sem.h>
#include <mbx.h>
#include <tsk.h>
Detailed Description
Header file for the MityDSP lwIP architecture definition.
o 0 | / Copyright (c) 2005-2007 (CL)---o Critical Link, LLC \ O
Define Documentation
#define SYS_MBOX_NULL NULL |
#define SYS_SEM_NULL NULL |
#define SYS_ARCH_DECL_PROTECT |
( |
lev |
|
) |
extern LCK_Handle ghLwipLock; |
#define SYS_ARCH_PROTECT |
( |
lev |
|
) |
LCK_pend(ghLwipLock, SYS_FOREVER) |
#define SYS_ARCH_UNPROTECT |
( |
lev |
|
) |
LCK_post(ghLwipLock) |
Typedef Documentation
Function Documentation
void sys_set_max_lwip_threads |
( |
int |
anMaxTasks |
) |
|
Set number of threads allowed to use lwIP concurrently.
- Note:
- Must be called prior to stack initialization.
- Parameters:
-
[in] | anMaxTasks | Maximum lwIP threads allowed. |
- Returns:
- None.
int sys_get_max_lwip_threads |
( |
void |
|
) |
|
Get number of threads allowed to use lwIP concurrently.
- Returns:
- Concurrent threads allowed.
void sys_set_mbx_queue_entries |
( |
int |
anMbxEntries |
) |
|
Set number of queue entries created in lwIP mailboxes.
- Note:
- Must be called prior to stack initialization.
- Parameters:
-
[in] | anMbxEntries | Number of entries to create. |
- Returns:
- None.
int sys_get_mbx_queue_entries |
( |
void |
|
) |
|
Get number of queue entries used in lwIP mailboxes.
- Returns:
- Queue entries configured.
Attempt to register a specified thread with lwIP.
- Parameters:
-
[in] | ahThread | Handle of thread to register. |
- Returns:
- Index into timeout structure (if successful), or -1 if failed.
Attempt to un-register a specified thread with lwIP.
- Parameters:
-
[in] | ahThread | Handle of thread to register. |
- Returns:
- 0 (if successful), or -1 if failed.
int sys_thread_priority |
( |
sys_thread_t |
ahThread, |
|
|
int |
anPrio | |
|
) |
| | |
Attempt to change the priority of a previously created thread.
- Parameters:
-
[in] | ahThread | Handle of thread to register. |
[in] | anPrio | New thread priority. |
- Returns:
- Index into timeout structure (if successful), or -1 if failed.
Variable Documentation