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

📄 memprint.h

📁 au1500开发的应用程序
💻 H
字号:
/* memPrint.h - memory print header */

/* Copyright 2002-2005 Founder Communications, Inc. */

/*
modification history
--------------------
01a,21apr05,fhchen  written
*/

/*
DESCRIPTION

This is the head file for memPrint.c, which contain routines to print
characters to on board mem.

To print to other usable region, re-define related address.

*/

#ifndef INCmemPrinth
#define INCmemPrinth

#ifdef __cplusplus
extern "C" {
#endif

/* includes */
#include <vxWorks.h>
#include "config.h"

/* defines */

#if (USER_RESERVED_MEM == 0)
# error "To use this module, USER_RESERVED_MEM must not be zero!"
#endif

#define MEM_PRINT_LOW_ADRS      (LOCAL_MEM_LOCAL_ADRS + LOCAL_MEM_SIZE - USER_RESERVED_MEM)
#define MEM_PRINT_HIGH_ADRS     (LOCAL_MEM_LOCAL_ADRS + LOCAL_MEM_SIZE)
#define MEM_PRINT_MAX_LEN       50          /* max length allowed for each message */

/* declarations */

extern void memPrintStr(char *string);       /* print char to reserved ram */
extern void memPrintf(char *fmt, ...);       /* print with format capability */    

/* macro */

#ifdef BSP_DEBUG
# define MEM_PRINTSTR(X)  memPrintStr(X)
# define MEM_PRINTF(X)    memPrintf X
#else    
# define MEM_PRINTSTR(X)
# define MEM_PRINTF(X)
#endif

#ifdef __cplusplus
}
#endif    

#endif  /* INCmemPrinth */

⌨️ 快捷键说明

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