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

📄 profiler_timer2.h

📁 ti evmdm642 timer测试程序
💻 H
字号:
/*

 * Copyright (C) 2003 Texas Instruments Incorporated

 * All Rights Reserved

 */

/*

 *---------profiler_timer2.h---------

 * This file list all the symbols and API's provided by the profiler

 * to the users.

 */

#include <csl.h>

#include <csl_timer.h>



//---------Error codes for the profiler functions---------



//Invalide timer device number

#define ERR_INVDEVNUM		0x00000001



//Invalid cpu by timer clock ratio

#define ERR_INVCLKRATIO		0x00000002



//Timer could not be opened because of invalid handle returned

#define ERR_BADHANDLE		0x00000003



//---------User API's to use 'Profiler' ---------



//Function to configure timer for profiler usage

//  Arg1  : int timDeviceNum : Which timer device to use for profiling

//  Arg2  : int clkRatio     : CPU CLK by TIMER CLK ratio

//

//  Return: int				 : 0   - Success

//                           : > 0 - Error in configuring timer 

extern int profile_timConfig(int timDeviceNum, int clkRatio);



//Function to be used just before the code section to be profiled.

//It starts the profiler operation.

extern void profile_begin(void);



//Function to be used immediately after the code section to be profiled.

//It stops the profiler operation.

long profile_end(void);



//Function to close the profiler after its usage. To be used before exiting

//  the user program.

void profile_timClose(void);

⌨️ 快捷键说明

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