📄 taskb.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 + -