📄 task1.h
字号:
/*
Copyright(c) Micro-Star International Co. Ltd.
The copyright to the computer program(s) herein is the property of
Micro-Star International Co. Ltd.
The program(s) may be used and/or copied only with the written
permission of MSI or in accordance with the terms and conditions
stipulated in the agreement/contract under which the program(s) have
been supplied.
*/
/*
* MODULE FILE NAME: TASK1.H
*
* DESCRIPTION:
* NONE
*
* NOTES:
* NONE
*
* HISTORY:
*
* $Log$
*
*/
#ifndef _TASK1_H_
#define _TASK1_H_
/* INCLUDE FILES */
/* system-wise, independent */
/* kernel service */
/* project dependent */
/* third party */
static T_CSEM t_csem; /* semaphore */
ER ercd;
/* Init semaphore */
t_csem.sematr = TA_TPRI;
t_csem.isemcnt = 1;
t_csem.exinf = SYS_BLD_TASK1_SEM_NAME; /* store task name */
t_csem.maxsem = 1;
/* create semaphore sema id SYS_BLD_SMTPC_SEM_ID */
ercd=cre_sem( SYS_BLD_TASK1_SEM_ID , &t_csem);
if (ercd!= E_OK)
{
printf("TASK1 wait semaphore error %d\n", ercd);
}
/*
* FUNCTION NAME: TASK1_Init
* PURPOSE:
* Initialize for TASK1 operations.
*
* INPUT:
* None
* OUTPUT:
* None
* RETURN:
* BOOL
* NOTES:
*
*/
BOOL TASK1_Init(void);
/*
* FUNCTION NAME: TASK1_CreateTask
* PURPOSE:
* Create the task of TASK1 Alerter.
*
* INPUT:
* None
* OUTPUT:
* None
* RETURN:
* BOOL -- return TRUE/FALSE
* NOTES:
*
*/
BOOL TASK1_CreateTask(void);
#endif _TASK1_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -