IAR常用函数代码模块
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
## to the field in the dialog box.
##
################################################################################
#TEMPLATE "if"
if( %c )
{
}
#TEMPLATE for,"&End Value"=10,&Variable=i
for(int %2 = 0; %2 < %1; %2++)
{
%c
}
#TEMPLATE switch,"switch ¶meter",&case1=0,&case2=1,&case3=2
swith(%1)
{
case %2:
%c
case %3:
%c
case %4:
%c
}Байду номын сангаас
#TEMPLATE interrupt,"interrupt ¶meter","Function &name"
## #TEMPLATE <template name>,<field>[=default value], <field>...
##
## The template name, the fields and their default values should be defined
## within quotes if they contain, for example space characters, equal signs,
************************************************************************************************************/
void %1(void)
{
%c
}
#TEMPLATE class,"Class &name",&Description=--
#pragma vector=%1_VECTOR
__interrupt void %2(void)
{
%c
}
#TEMPLATE &Function>&Function,"Function &name","Input ¶meter","Out¶meter",&Description=--,&Created="$DATE$, by魔女的黑骑士"
################################################################################
##
## This is an example file for defining your own code templates.
##
## The syntax for defining code templates is:
## or comma characters.
## Use "&" in front of a letter to make the letter become a shortcut,
## which means that you can use ALT+<letter> to select the template or jump
/***********************************************************************************************************
*函数名称: %1()
*输入参数: %2
*输出参数: %3
*
*功能: %4
*
*作者: %5
//******************
//
// CLASS: %1
//
// DESCRIPTION:
// %2
//
class %1
{
%1();
~%1();
%c
};
##
################################################################################
#TEMPLATE "if"
if( %c )
{
}
#TEMPLATE for,"&End Value"=10,&Variable=i
for(int %2 = 0; %2 < %1; %2++)
{
%c
}
#TEMPLATE switch,"switch ¶meter",&case1=0,&case2=1,&case3=2
swith(%1)
{
case %2:
%c
case %3:
%c
case %4:
%c
}Байду номын сангаас
#TEMPLATE interrupt,"interrupt ¶meter","Function &name"
## #TEMPLATE <template name>,<field>[=default value], <field>...
##
## The template name, the fields and their default values should be defined
## within quotes if they contain, for example space characters, equal signs,
************************************************************************************************************/
void %1(void)
{
%c
}
#TEMPLATE class,"Class &name",&Description=--
#pragma vector=%1_VECTOR
__interrupt void %2(void)
{
%c
}
#TEMPLATE &Function>&Function,"Function &name","Input ¶meter","Out¶meter",&Description=--,&Created="$DATE$, by魔女的黑骑士"
################################################################################
##
## This is an example file for defining your own code templates.
##
## The syntax for defining code templates is:
## or comma characters.
## Use "&" in front of a letter to make the letter become a shortcut,
## which means that you can use ALT+<letter> to select the template or jump
/***********************************************************************************************************
*函数名称: %1()
*输入参数: %2
*输出参数: %3
*
*功能: %4
*
*作者: %5
//******************
//
// CLASS: %1
//
// DESCRIPTION:
// %2
//
class %1
{
%1();
~%1();
%c
};