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

📄 taskb.c

📁 AT91所有开发板的资料 AT91所有开发板的资料
💻 C
字号:
/**************************************************************
 *
 * ARM - Strategic Support Group
 *
 **************************************************************/

/***************************************************************
 *
 * Module		: taskb.c
 * Description  : Is a continuous task which is interrupted
 *              : periodically and replaced with TaskA
 * Tool Chain	: ARM Developer Suite v1.0
 * Platform		: Evaluator7T
 * History	:
 *		
 *			993009 ASloss
 *			- designed simple task
 *			
 *			2000-03-26 Andrew N. Sloss
 *			- ported to Evaluator7T
 *
 * Notes 		: none...
 *
 ***************************************************************/

/***************************************************************
 * IMPORT
 ***************************************************************/

#include "led.h"
#include "mutex.h"

/***************************************************************
 * ROUTINES
 ***************************************************************/

/* -- taskb_process ---------------------------------------------
 *
 * Description 	: task B 
 * 
 * Parameters	: none...
 * Return		: none...
 * Other		:
 *
 * 		This task runs continuously
 *
 */

void taskb_process (void)
{
int x;

	LED_2_ON; 
	 
	while (1) {
	bWAIT;

		LED_3_ON;

		//
		// *** Place critical code segment here *** 
		//

		for ( x =0; x< 0x10ffff; x++ ) {} 

	bSIGNAL;

		LED_3_OFF;

		for ( x =0; x< 0x10ffff; x++ ) {}

	}

}

/******************************************************************
 * End OF taskb.c
 ******************************************************************/

⌨️ 快捷键说明

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