Header file for the MityDSP lwIP architecture definition. More...
#include <std.h>
#include <lck.h>
#include <sem.h>
#include <mbx.h>
#include <tsk.h>
Classes | |
struct | tsSysArchStats |
Macros | |
#define | SYS_MBOX_NULL NULL |
#define | SYS_SEM_NULL NULL |
#define | MAX_QUEUES 20 |
#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) |
Typedefs | |
typedef LCK_Handle | sys_prot_t |
typedef SEM_Handle | sys_sem_t |
typedef MBX_Handle | sys_mbox_t |
typedef TSK_Handle | sys_thread_t |
typedef void(* | NetAssertCB )(const char *apMsg) |
Functions | |
void | sys_set_max_lwip_threads (int anMaxTasks) |
int | sys_get_max_lwip_threads (void) |
void | sys_set_mbx_queue_entries (int anMbxEntries) |
int | sys_get_mbx_queue_entries (void) |
int | sys_thread_register (sys_thread_t ahThread) |
int | sys_thread_unregister (sys_thread_t ahThread) |
int | sys_thread_priority (sys_thread_t ahThread, int anPrio) |
Variables | |
tsSysArchStats | fsSysArchStats |
Statistic storage. |
Header file for the MityDSP lwIP architecture definition.
o 0 | / Copyright (c) 2005-2007 (CL)—o Critical Link, LLC \ O
#define SYS_MBOX_NULL NULL |
#define SYS_SEM_NULL NULL |
#define MAX_QUEUES 20 |
#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 LCK_Handle sys_prot_t |
typedef SEM_Handle sys_sem_t |
typedef MBX_Handle sys_mbox_t |
typedef TSK_Handle sys_thread_t |
typedef void(* NetAssertCB)(const char *apMsg) |
void sys_set_max_lwip_threads | ( | int | anMaxTasks | ) |
Set number of threads allowed to use lwIP concurrently.
[in] | anMaxTasks | Maximum lwIP threads allowed. |
int sys_get_max_lwip_threads | ( | void | ) |
Get number of threads allowed to use lwIP concurrently.
void sys_set_mbx_queue_entries | ( | int | anMbxEntries | ) |
Set number of queue entries created in lwIP mailboxes.
[in] | anMbxEntries | Number of entries to create. |
int sys_get_mbx_queue_entries | ( | void | ) |
Get number of queue entries used in lwIP mailboxes.
int sys_thread_register | ( | sys_thread_t | ahThread | ) |
Attempt to register a specified thread with lwIP.
[in] | ahThread | Handle of thread to register. |
int sys_thread_unregister | ( | sys_thread_t | ahThread | ) |
Attempt to un-register a specified thread with lwIP.
[in] | ahThread | Handle of thread to register. |
int sys_thread_priority | ( | sys_thread_t | ahThread, |
int | anPrio | ||
) |
Attempt to change the priority of a previously created thread.
[in] | ahThread | Handle of thread to register. |
[in] | anPrio | New thread priority. |
tsSysArchStats fsSysArchStats |
Statistic storage.