MityDSP Documentation Index
Classes | Macros | Typedefs | Functions | Variables
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

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.

Detailed Description

Header file for the MityDSP lwIP architecture definition.

o 0 | / Copyright (c) 2005-2007 (CL)—o Critical Link, LLC \ O


Macro Definition 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]anMaxTasksMaximum 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]anMbxEntriesNumber 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]ahThreadHandle 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]ahThreadHandle 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]ahThreadHandle of thread to register.
[in]anPrioNew thread priority.
Returns:
Index into timeout structure (if successful), or -1 if failed.

Variable Documentation

tsSysArchStats fsSysArchStats

Statistic storage.


  
Generated on Mon Apr 22 2013 11:33:29 for MityDSP lwIP Port by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.