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

📄 libport.h

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

	Copyright 1997 by InterNiche Technologies.

	08/16/98 - Net186 version. John Bartas
*/

#ifndef _LIBPORT_H
#define _LIBPORT_H   1

#ifdef PRINTF_STDARG
#include <stdarg.h>
#endif 

/* options specific to the utilities library */

/* enabled options */
/*#define INCLUDE_NVPARMS 1     non-volatile (NV) parameters logic(yaon del) */
#define INICHE_STRICMP  1     /* no stricmp in C library */
#define INICHE_STRNICMP 1     /* no strnicmp in C library */
#define INICHE_STRISTR  1     /* no stristr in C library */

#ifdef NOTDEF
#define INCLUDE_FLASHFS 1     /* NV params read from flash */
#define INCLUDE_SHELL   1     /* system can exec shell commands */
#endif

#ifdef INCLUDE_FLASHFS
#define FLASHBASE 0x70000000  /* memory address to build FFS on net186 */
#define FLASHFIRM 0xD0000000  /* base of flash to store FFS net186 */
#define NUMNVFILES 8          /* numnber of flash files allowed */
#define NVFSIZE   (1024*4)    /* reserved size for each flash file */
#endif

/* misc prototypes for TCP/IP misclib port */
void	panic(char * msg);
#ifdef PRINTF_STDARG
void  doprint(char * target, char * sp, va_list va);
#else  /* PRINTF_STDARG */
void  doprint(char * target, char * sp, int * vp);
#endif /* PRINTF_STDARG */

#ifndef isdigit
#define isdigit(_c)  ((_c >= '0' && _c <= '9') ? 1:0)
#endif

/* 16 bit Intel compilers have a brain-damaged idea of address
arithmetic unless certain pointers are declared HUGE. Define this
away on other systems */
#ifndef HUGE
#define HUGE
#endif /* HUGE */



#endif /* _LIBPORT_H */

⌨️ 快捷键说明

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