utl_defaultlog.c

来自「使用CCS信息DSP编程,适用于6713B的启动程序。」· C语言 代码 · 共 40 行

C
40
字号
/*
 *  Copyright 2003 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) ReferenceFrameworks 2.20.00.08 07-18-03 (swat-f02)" */
/*
 *  ======== utl_defaultLog.c ========
 *
 *  Defines handles for the four LOG objects (error/warning/messages/debug)
 *  and implements a function that lets the user set those.
 */
#include <std.h>
#include <log.h>

#include <utl.h>

LOG_Handle UTL_logErrorHandle   = NULL;
LOG_Handle UTL_logWarningHandle = NULL;
LOG_Handle UTL_logMessageHandle = NULL;
LOG_Handle UTL_logDebugHandle   = NULL;

/*
 *  ========= UTL_setLogs ==========
 *  Names the LOG objects to be used for errors/warnings/messages/debugging;
 *  they do not have to be all different.
 */
Void UTL_setLogs( LOG_Handle logErr, LOG_Handle logWarn, 
                         LOG_Handle logMsg, LOG_Handle logDbg )
{
    UTL_logErrorHandle   = logErr;
    UTL_logWarningHandle = logWarn;
    UTL_logMessageHandle = logMsg;
    UTL_logDebugHandle   = logDbg;
}


⌨️ 快捷键说明

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