⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osport.h

📁 在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LEA_4S的驱动,位置速寻算法,语音芯片ISD4004的录放音驱动,LED页面管理等等.从启动代码到操作系统的移植以及到业
💻 H
字号:
/* osport.h for NichTask on win32

   Map InterNiche tasking primitives to task.c scheduler.

1/1/98 - Created for tasking support. John Bartas
*/

#include "ipport.h"

/* network includes */
/* include all the files needed in our build of netmain.c */
#include "in_utils.h"
#include "q.h"
#include "netbuf.h"
#include "net.h"
#include "arp.h"
#include "ip.h"
#include "icmp.h"
#include "udp.h"
#include "nvparms.h"
#include "nvfsio.h"
#include "menu.h"
#include "app_ping.h"


#ifdef INICHE_TASKS

extern char * pre_task_setup(void);
extern char * post_task_setup(void);

#define TK_SLEEP(ticks) tk_sleep(ticks)

/* table with an entry for each internet task/thread. This is filled
in the netmain.c, so it should have the same values in the same order 
in all ports */

struct inet_taskinfo {
   TK_OBJECT_PTR(tk_ptr);  /* pointer to static task object */
   char * name;            /* name of task */
   TK_ENTRY_PTR(entry);    /* pointer to code to start task at */
   int   priority;         /* priority of task */
   int   stacksize;        /* size (bytes) of task's stack */
};

extern struct inet_taskinfo nettasks[];

int   TK_NEWTASK(struct inet_taskinfo * nettask);
void  TK_NETRX_BLOCK();
void  TK_APP_BLOCK(void * event);

extern char * post_net_setup(void);

/* task stack sizes */
#define  NET_STACK_SIZE 8192
#define  APP_STACK_SIZE 8192     /* default for applications */
#define  CLOCK_STACK_SIZE 4096

#define  IO_STACK_SIZE     4096
#define  WEB_STACK_SIZE    APP_STACK_SIZE
#define  FTP_STACK_SIZE    APP_STACK_SIZE
#define  PING_STACK_SIZE   4096
#define  TN_STACK_SIZE     APP_STACK_SIZE

#define NET_PRIORITY       0     /* priorities not used on InterNiche tasks */
#define KB_PRIORITY        0
#define APP_PRIORITY       0

#define MAIN_TASK_IS_NET   1     /* compiler main() is converted to net task */
#define TK_NETMAINPARM     0     /* parameter to main/net task */
#define TK_STDIN_DEVICE

#ifdef MINI_IP
#define net_system_exit (FALSE)
#else
extern int net_system_exit;   /* TRUE if system is shutting down */
#endif

extern int iniche_net_ready;

#endif /* INICHE_TASKS */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -