📄 taska.c
字号:
/**************************************************************
*
* ARM Strategic Support Group
*
**************************************************************/
/**************************************************************
*
* Module : TaskA
* Description : Shell TASK routine that toggles the LED2
* Tool Chain : ARM Developers Suite 1.0
* Platform : Evaluator7T
* History :
*
* 2000-03-27 Andrew N. Sloss
* - ported to Evalautor7T
* - added header and changed the delay time
*
**************************************************************/
/**************************************************************
* IMPORT
**************************************************************/
#include "led.h"
#include "mutex.h"
/**************************************************************
* MACROS
**************************************************************/
// none...
/**************************************************************
* DATATYPES
**************************************************************/
// none...
/**************************************************************
* ROUTINES
**************************************************************/
/* -- taska_process -------------------------------------------
*
* Description : task A
*
* Parameters : none...
* Return : none...
* Other :
*
* This task executes continuously
*
*/
void taska_process (void)
{
int delay;
while (1) {
aWAIT; // lock critical section ...
LED_2_ON;
// ................................
// Critical Code Section
// ................................
// dummy time delay...
for (delay=0; delay<0x20ffff; delay++) {}
aSIGNAL;
LED_2_OFF;
// dummy time delay...
for (delay=0; delay<0x20ffff; delay++) {}
}
}
/************************************************************
* End OF taska.c
************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -