MityDSP Documentation Index

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>

Classes

struct  tsSysArchStats

Defines

#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.

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

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)

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.
int sys_thread_register ( sys_thread_t  ahThread  ) 

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.
int sys_thread_unregister ( sys_thread_t  ahThread  ) 

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

Statistic storage.


  
Generated on Fri Sep 23 16:33:59 2011 for MityDSP lwIP Port by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.