libport.h

来自「在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LE」· C头文件 代码 · 共 58 行

H
58
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?