taskb.c
来自「AT91所有开发板的资料 AT91所有开发板的资料」· C语言 代码 · 共 80 行
C
80 行
/**************************************************************
*
* 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 + =
减小字号Ctrl + -
显示快捷键?