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

📄 menu.h

📁 在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LEA_4S的驱动,位置速寻算法,语音芯片ISD4004的录放音驱动,LED页面管理等等.从启动代码到操作系统的移植以及到业
💻 H
字号:
/*
 * FILENAME: menu.h
 *
 * Copyright  2000 By InterNiche Technologies Inc. All rights reserved
 *
 * Structure for simple application menu system.
 *
 * MODULE: TCP
 *
 *
 * PORTABLE: yes
 */

/* Additional Copyrights: */
/* Portions Copyright 1990,1993 by NetPort Software */


#ifndef MENU_H
#define  MENU_H   1

#include "in_utils.h"

/* a menu can be defined as an array of these structures. Selecting a 
 * key can invoke the corrosponding function. 
 */

struct menu_op                /* structure to describe each menu item */
{
   char *   opt;              /* the option name */
   int (*func)(void * pio);   /* routine name to execute the option */
   char *   desc;             /* description of the option */
};

#define  CBUFLEN     128            /* size of cbuf */
extern   char        cbuf[CBUFLEN]; /* user command line buffer */

#define  MAX_MENUS   25
extern   struct menu_op *  menus[MAX_MENUS];    /* master menu list */

/* menu routine prototypes: */
extern   int      install_menu(struct menu_op * newmenu);   /* add new menu */
extern   char *   getcmd(void);           /* get cmdline into cbuf while spinning tasks */
extern   void     showmenu(void * pio, struct menu_op *);
extern   int      help(void * pio);       /* display menu prompt text */
extern   int      stooges(void * pio);    /* called when system breaks */
extern   int      do_command(void * pio); /* parse & perform command */
extern   char *   nextarg(char*);         /* get nexxt arg from a string */
extern   int      stlen(char*);           /* like strlen, but not exactly */
extern   int      stcmp(char*, char*);    /* like strcmp, but not exactly */
extern   int      setdebug (void * pio);
extern   int      arp_stats(void * pio);
/*extern   u_long   sysuptime(void);*/ /* (yaxon modify) */
extern   unsigned long  sysuptime(void);

#endif   /* MENU_H */

⌨️ 快捷键说明

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