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

📄 task_profiling.h

📁 本程序为ST公司开发的源代码
💻 H
字号:
/*____________________________________________________________________________| FILE:         task_profiling.h| PROJECT:      OS20_ACCORDO+| SW-COMPONENT: |_____________________________________________________________________________| DESCRIPTION:  Public Header file for task profiling OS handling|_____________________________________________________________________________| COPYRIGHT:    (c) 2005 STMicroelectronics, Arzano (ITALY)| HISTORY:| Date      					| Modification               | Author|_____________________________________________________________________________| $Date: 2006/08/03 13:50:42 $  | Initial revision           | $Author: belardi $|____________________________________________________________________________*/#if	(OS20_PROFILING == 1)#ifndef TASK_PROFILING_H#define TASK_PROFILING_H//#include "types.h"#if 0#include "string.h"#include "lld_uart.h"#endif/***********************************************************************************/							/* Global definitions *//***********************************************************************************//* Number of task for profiling *///old: #define TASK_NROF	10/* Number of interrupt for profiling */#define NR_OF_INT	32#if 0/*UART task profiling output */#define profiling_print(data)	LLD_UART_u32Write(0, data, strlen(data));#endif/* Structures for Task and interruot profiling*/typedef struct{	unsigned long ticks;		// time in nr. ticks	unsigned long activations;	// nr. activations}STAT_PROF_t;/***********************************************************************************/							/* Customer Public functions *//***********************************************************************************//* Allocate memory for task structure profiling */void Set_task_profile(int, STAT_PROF_t *);/* Return ticks from start to end profiling */unsigned long Get_duration (void);/* Return task_id's address profiling structure */STAT_PROF_t* Get_task_address(int);/* Return int_vector's address profiling structure */STAT_PROF_t* Get_int_address(int);/* Start the profiling */void Start_profiling (void);/* Stop the profiling */void Stop_profiling (void);/* To initiliaze task profiling structure */void profile_init(void);#endif // TASK_PROFILING_H#endif //#endif (OS20_PROFILING)

⌨️ 快捷键说明

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