亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? utl.h

?? TITMS6000 DM642 串口程序 uart
?? H
?? 第 1 頁 / 共 2 頁
字號:
    #define UTL_logDebug( format )  \
            LOG_printf( UTL_logDebugHandle, (format) )
    #define UTL_logDebug0( format )  \
            LOG_printf( UTL_logDebugHandle, (format) )
    #define UTL_logDebug1( format, arg1 )  \
            LOG_printf( UTL_logDebugHandle, (format), (arg1) )
    #define UTL_logDebug2( format, arg1, arg2 )  \
            LOG_printf( UTL_logDebugHandle, (format), (arg1), (arg2) )
#else   /* UTL_LOGDEBUG == 0 */
    #define UTL_logDebug( format )
    #define UTL_logDebug0( format )
    #define UTL_logDebug1( format, arg1 )
    #define UTL_logDebug2( format, arg1, arg2 )
#endif  /* UTL_LOGDEBUG */

        
/*
 *  UTL_ALGMEM class comprises two related funtions:
 *  UTL_showAlgMem() which displays algorithm instance's memory usage, and
 *  UTL_showHeapUsage() which reports a particular heap's usage 
 */
#if UTL_ALGMEM == 1
    /* 
     *  ======== UTL_showAlgMem ==========
     *
     *  Reporting XDAIS algorithm memory usage
     *
     *  This macro provides size and memory type information for each allocated
     *  memory segment of the given algorithm (by calling the function below),
     *  as well as the total size broken down by memory type.
     *  If the third argument is set to 1, it will also show the actual
     *  memory address of the segment. That can be accomplished by defining
     *  flag UTL_ALGMEMVERBOSE to 1.
     */
    #define UTL_showAlgMem( alg )       \
        UTL_showAlgMemFunc( (Ptr)(alg), UTL_stringify( alg ), \
                            UTL_ALGMEMVERBOSE )
    /* Variant of UTL_showAlgMem() where name is specified directly. */
    #define UTL_showAlgMemName( alg, algName )       \
        UTL_showAlgMemFunc( (Ptr)(alg), algName, UTL_ALGMEMVERBOSE )
    #ifndef     UTL_ALGMEMVERBOSE
        #define UTL_ALGMEMVERBOSE 0   /* by default, don't display addresses */
    #endif
    
    /*
     *  ======== UTL_showAlgMemFunc ==========
     *
     *  Declaration of the actual function implementing the above macro.
     */
    extern Void UTL_showAlgMemFunc( Ptr algHandle, String algName, 
                                    Int boolVerbose );

    /* 
     *  ======== UTL_showHeapUsage ==========
     *
     *  A small utility function that shows the size and usage of the
     *  given segment. Similarly to a function above, it is a macro that
     *  expands the argument for printing and calls the actual function.
     */
    #define UTL_showHeapUsage( SEGID ) /* name such as IDATA */     \
        UTL_showHeapUsageFunc( SEGID, UTL_stringify( SEGID ) )
        
    /*
     *  ======== UTL_showHeapUsageFunc ==========
     *
     *  Declaration of the actual function implementing the above macro.
     */
    extern Void UTL_showHeapUsageFunc( Int segid, String segname );
    
#else                           /* UTL_ALGMEM */
    #define UTL_showAlgMem( alg )
    #define UTL_showAlgMemName( alg, algName )
    #define UTL_showHeapUsage( SEGID ) 
#endif                          /* UTL_ALGMEM */


/*  
 *  ======== UTL_sts* ==========
 *
 *  There are several utility functions for time measurement: measuring
 *  periods, execution times, and phases between periodic events.
 *
 *  Arguments to UTL_sts* functions are names of STS objects as defined
 *  in the DSP/BIOS configuration file (not the addresses). The only 
 *  prerequisite for using an  STS object with any UTL_sts function 
 *  is to use the following macro in any of the .c modules of the application: 
 *  UTL_stsDefine( <sts> );
 *  where <sts> is the name of the STS object as defined in the configuration 
 *  (e.g. "stsTime0" or "stsTransfer").
 *  This macro allocates a space for an internal structure used by UTL_sts* 
 *  functions and initializes that object.
 *
 *  Supported functions (macros) are the following: 
 * 
 *  UTL_stsStart( <sts> ), UTL_stsStop( <sts> ) -- start/stop sequence
 *  for measuring execution time. UTL_stsStart() also returns current time,
 *  UTL_stsStop() returns the measured difference. NOTE: for accurate
 *  results, it is recommended that you DISABLE INTERRUPTS before calling
 *  UTL_stsStart() and to enable them after returning from UTL_stsStop().
 * 
 *  UTL_stsPeriod( <sts> ) measures the difference in time between two
 *  calls to this procedure (for the same STS object), applies it to 
 *  the <sts> object and returns the difference.
 *
 *  UTL_stsPhase( <stsSrc1>, <stsSrc2>, <stsDst> ) -- examines the
 *  absolute difference in timestamp values for STS objects <stsSrc1> and 
 *  <stsSrc2>, stores it in <stsDst> and returns that value. Objects
 *  <stsSrc1> and <stsSrc2> must have been used in a UTL_stsPeriod()
 *  function; for instance, if data transmit functions for two channels
 *  call UTL_stsPeriod( stsCh0 ) and UTL_stsPeriod( stsCh0 ) respectively,
 *  UTL_stsPhase( stsCh0, stsCh0, stsPh01 ) will return the phase 
 *  difference between the two channels and update stsPh01 accordingly.
 */
#if UTL_STS == 1

    typedef struct _UTLSTS_Obj {
        STS_Obj *sts;      /* pointer to STS object defined in config file */
        LgUns    lastTime; /* last timestamp for this object */
        LgUns    count;    /* number of times Period invoked (used for Phase) */
    } UTLSTS_Obj;

    #define UTL_stsDefine( stsName )        \
        extern STS_Obj stsName;         \
        UTLSTS_Obj utl##stsName = { &(stsName), 0, 0 }

    #define UTL_stsStart( stsName ) do {        \
        extern UTLSTS_Obj utl##stsName;         \
        UTL_stsStartFunc( &(utl##stsName) );    \
        } while (0)

    #define UTL_stsStop( stsName ) do {         \
        extern UTLSTS_Obj utl##stsName;         \
        UTL_stsStopFunc( &(utl##stsName) );     \
        } while (0)

    #define UTL_stsPeriod( stsName ) do {       \
        extern UTLSTS_Obj utl##stsName;         \
        UTL_stsPeriodFunc( &(utl##stsName) );   \
        } while (0)

    #define UTL_stsPhase( stsSrc1, stsSrc2, stsDst ) do {                     \
        extern UTLSTS_Obj utl##stsSrc1, utl##stsSrc2, utl##stsDst ;           \
        UTL_stsPhaseFunc( &(utl##stsSrc1), &(utl##stsSrc2), &(utl##stsDst) ); \
        } while (0)

    #define UTL_stsReset( stsName ) do {        \
        extern UTLSTS_Obj utl##stsName;         \
        UTL_stsResetFunc( &(utl##stsName) );    \
        } while (0)

    extern LgUns UTL_stsStartFunc ( UTLSTS_Obj *utlsts );
    extern LgUns UTL_stsStopFunc  ( UTLSTS_Obj *utlsts );
    extern LgUns UTL_stsPeriodFunc( UTLSTS_Obj *utlsts );
    extern LgUns UTL_stsPhaseFunc ( UTLSTS_Obj *utlstsSrc1, 
                                    UTLSTS_Obj *utlstsSrc2, 
                                    UTLSTS_Obj *utlstsDst );
    extern Void  UTL_stsResetFunc ( UTLSTS_Obj *utlsts );

#else   /* UTL_STS */

    #define UTL_stsDefine( stsName ) extern Int noUTLStsFunctionality
    #define UTL_stsStart( stsName )
    #define UTL_stsStop( stsName )
    #define UTL_stsPeriod( stsName )
    #define UTL_stsPhase( stsSrc1, stsSrc2, stsDst )
    #define UTL_stsReset( stsName )

#endif  /* UTL_STS */



/*
 *  ======== UTL_assert ========
 *  Assert macro for exceptions
 * 
 *  If an assertion fails, we interrupt the execution flow and preserve
 *  the state of the system.
 *  If the application is being debugged with Code Composer Studio, we place 
 *  a word in program memory that has the effect of a breakpoint -- it halts 
 *  the execution and CCS shows the line of code where the failed assertion 
 *  occured. The special word that causes the breakpoint effect is different 
 *  for every DSP family.
 *  Otherwise, if CCS is not used, we disable interrupts and run into an 
 *  infinite loop, waiting for the user to halt the target manually.
 *  To do so, define UTL_ASSERTCCS macro flag externally to be 0.
 */
#if UTL_ASSERT == 1  /* first check if UTL_ASSERT() is enabled at all */

    /* 
     *  First we define the special word for each platform: 
     *  On 55x we add a NOP to guard against small possibility that 
     *  long instruction pipeline causes debugger to stop at next C src line
     *  instead of currently executing C src statement. We also ensure this 
     *  works on both 55x mnemonic (default) and algebraic 55x assembler.
     *  Note that asm statement is a single execution context to maintain
     *  pre-processor consistency.
     */
    #if   defined( _54_ ) 
        #define UTL_STOPWORD asm( "  ESTOP" )
    #elif defined( _55_ )
        #define UTL_STOPWORD asm(" .if (.MNEMONIC)\n ESTOP_1\n .else\n ESTOP_1()\n .endif\n NOP")
    #elif defined( _6x_ ) 
        #define UTL_STOPWORD asm( "    NOP\n    .word 0x10000000" )
    #else
        #define UTL_ASSERTCCS 0  /* unknown platform => no CCS breakpoint */
    #endif

    #if !defined( UTL_ASSERTCCS ) 
        #define UTL_ASSERTCCS 0
    #endif

    /* check if it's OK with the user to use CCS breakpoints for asserts() */
    #if UTL_ASSERTCCS == 0
        /* it is; define the UTL_assert macro */
        #define UTL_assert( expr )      \
            for (; !( expr ); )         \
                UTL_STOPWORD

    #else /* UTL_ASSERTCCS == 0 */  /* no Code Composer Studio here */
        #define UTL_assert( expr ) do {                                        \
            if ( !(expr) ) {  /* use UTL_error() to halt, prototyped below */  \
                UTL_error( "Assertion Violation: " __FILE__ ", line "          \
                    UTL_stringify(__LINE__) " (" UTL_stringify(expr) ")", 0 ); \
            }                                                                  \
        } while (0)
    #endif  /* UTL_ASSERTCCS */

    /*
     *  UTL_assertFunc() is meant for testing expressions with side effects,
     *  i.e. mostly for checking function calls. If enabled, behaves exactly
     *  the same as UTL_assert. If disabled, it is not expanded to nothing
     *  but to actual expression. E.g.,
     *  UTL_assertFunc( someFunc() == TRUE ); 
     *  If asserts are disabled, expands to
     *  (someFunc() == TRUE);
     */
    #define UTL_assertFunc UTL_assert
    
#else                       /* UTL_ASSERT */
    #define UTL_assert( expr )
    #define UTL_assertFunc( expr ) (expr)
#endif                      /* UTL_ASSERT */

/*
 *  Function prototype for UTL_error: place an error message (and up to 1 
 *  argument) into the BIOS system log, then halt the target. Can be used
 *  outside of UTL_assert() if someone needs it.
 */
extern Void UTL_error( String msg, Arg arg );

/*
 *  ======== UTL_stringify ========
 *  A utility macro that "stringifies" the macro argument x
 */
#define UTL_stringify(x)   _UTL_stringify(x)
#define _UTL_stringify(x)  #x


#ifdef __cplusplus
}
#endif /* extern "C" */

#endif /* UTL_ */


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美一区二区三区极速播放| 91美女视频网站| 午夜私人影院久久久久| 一区二区三区在线高清| 免费在线欧美视频| 日韩精品每日更新| www.亚洲在线| 九色综合国产一区二区三区| 香蕉加勒比综合久久| 国产精品国产三级国产有无不卡| 国产麻豆精品一区二区| 国产一区二区视频在线播放| 久久久久久免费网| 国产91在线看| 欧美一区二区视频在线观看| 美腿丝袜在线亚洲一区| 国产日韩欧美一区二区三区乱码| av动漫一区二区| 日韩激情视频网站| 国产三级精品三级在线专区| 91久久精品一区二区二区| 日韩国产欧美在线播放| a美女胸又www黄视频久久| 欧美视频一区二区在线观看| 久久九九影视网| 亚洲图片有声小说| youjizz久久| 2020国产精品久久精品美国| 久久久精品综合| 亚洲综合在线五月| 国产98色在线|日韩| 欧美日韩国产精品自在自线| 亚洲国产成人午夜在线一区| 国产盗摄精品一区二区三区在线| 久久夜色精品国产噜噜av| 一区二区三区中文免费| 欧美三级电影在线观看| 中文字幕第一区第二区| 精品一区二区三区日韩| 中文一区二区完整视频在线观看 | 91视频91自| 婷婷综合另类小说色区| 国产精品欧美综合在线| 欧美一区二区三区的| 91丝袜高跟美女视频| 看片的网站亚洲| 亚洲国产aⅴ成人精品无吗| 久久久久高清精品| 日韩视频免费观看高清完整版在线观看 | 91国偷自产一区二区三区成为亚洲经典 | 7777精品伊人久久久大香线蕉超级流畅 | 精品久久99ma| 欧美日韩一级片网站| 成人av网址在线| 激情综合网最新| 午夜不卡av免费| 夜夜嗨av一区二区三区网页| 国产精品美女久久久久高潮| 久久久久久久久久久久久久久99| 欧美日韩国产综合一区二区三区 | 国产91精品入口| 蜜桃视频第一区免费观看| 亚洲二区视频在线| 亚洲色图.com| 中文字幕一区二区三区不卡 | 一级中文字幕一区二区| 国产精品二区一区二区aⅴ污介绍| 精品日韩在线观看| 欧美一卡2卡3卡4卡| 欧美精品乱码久久久久久| 欧美视频一区二区| 欧美日韩国产区一| 欧美浪妇xxxx高跟鞋交| 欧美日韩一区二区三区免费看| 91传媒视频在线播放| 色综合久久天天综合网| 在线免费亚洲电影| 欧美在线看片a免费观看| 在线影视一区二区三区| 在线视频欧美精品| 欧美日韩成人高清| 欧美一级黄色大片| 日韩欧美一区二区在线视频| 精品久久久久久亚洲综合网 | 高清shemale亚洲人妖| 成人永久免费视频| 99精品国产热久久91蜜凸| av欧美精品.com| 91一区二区在线观看| 在线看日韩精品电影| 欧美精品一卡二卡| 欧美一级淫片007| 久久综合久久综合亚洲| 国产日韩高清在线| 亚洲欧美在线观看| 亚洲图片一区二区| 日本欧美大码aⅴ在线播放| 精品伊人久久久久7777人| 国产精品中文字幕一区二区三区| 岛国一区二区在线观看| 色婷婷国产精品| 在线不卡中文字幕| 国产欧美日韩亚州综合 | 丝袜诱惑亚洲看片 | 不卡的电视剧免费网站有什么| 99re这里只有精品6| 欧美日韩精品三区| 久久综合狠狠综合久久综合88 | 337p日本欧洲亚洲大胆色噜噜| 国产调教视频一区| 亚洲综合精品久久| 九九九久久久精品| 日本韩国欧美一区| 精品国产乱码久久久久久图片 | 日韩午夜电影在线观看| 国产精品丝袜久久久久久app| 亚洲妇熟xx妇色黄| 国产一区中文字幕| 欧美日韩亚洲高清一区二区| 欧美mv日韩mv国产网站| 亚洲精品国产a| 激情国产一区二区| 91福利在线看| 中文在线一区二区| 欧美aaaaaa午夜精品| 色系网站成人免费| 久久久久青草大香线综合精品| 亚洲影院免费观看| 粉嫩13p一区二区三区| 日韩一区二区三区电影在线观看 | 亚洲一区免费观看| 成人性生交大片免费看视频在线 | 一区二区三区欧美久久| 国产自产高清不卡| 欧美老女人第四色| 亚洲激情图片一区| 国产成人综合亚洲网站| 欧美一区二区三区四区久久| 亚洲人成在线播放网站岛国| 国产精品一级二级三级| 4438亚洲最大| 一区二区三区不卡视频| av激情亚洲男人天堂| 久久精品夜夜夜夜久久| 日本欧美一区二区三区乱码| 欧美色图免费看| 一区二区三区四区在线免费观看 | 国产成人日日夜夜| 欧美成人欧美edvon| 日韩国产一区二| 欧美群妇大交群的观看方式| 曰韩精品一区二区| av在线播放不卡| 亚洲综合在线五月| 91亚洲精品乱码久久久久久蜜桃| 久久精品一区二区| 国产一区二区三区免费观看 | 久久先锋影音av鲁色资源网| 免费av成人在线| 3d成人动漫网站| 丝袜美腿成人在线| 51精品国自产在线| 免费欧美高清视频| 欧美不卡激情三级在线观看| 日本伊人色综合网| 日韩精品中文字幕一区| 毛片不卡一区二区| 日韩欧美专区在线| 久久福利视频一区二区| 欧美大尺度电影在线| 狠狠v欧美v日韩v亚洲ⅴ| 欧美成人vps| 国产精品一二一区| 中文字幕一区二区三区精华液| av一区二区不卡| 亚洲一区在线观看免费| 欧美一区二区三区视频在线| 九色综合国产一区二区三区| 久久久久国产精品麻豆ai换脸| 成人三级伦理片| 亚洲欧美日韩久久| 欧美日韩国产123区| 日本午夜一区二区| 久久久久久久一区| 成人av电影免费在线播放| 亚洲免费观看高清完整版在线| 欧美亚洲一区二区三区四区| 午夜精品久久久久久久久 | 国产亚洲欧美在线| www.久久精品| 亚洲动漫第一页| 日韩欧美一区二区视频| 国产69精品久久久久毛片| 一区二区三区蜜桃网| 91精品婷婷国产综合久久性色| 久久av老司机精品网站导航| 国产精品色婷婷| 精品视频999| 国产美女娇喘av呻吟久久| 亚洲黄色免费电影|