📄 e03b.c
字号:
/*""FILE COMMENT""***********************************************************
* System Name : for eduction (NO TRANSFERRING)
* File Name : e03b.c
* Contents : embedded C language entrance course
* : exercise 3B:program for decided functions
* : (get maximum, minimux, average)
* Model : for OAKS8-LCD Board
* CPU : R8C/Tiny series
* Compiler : NC30WA(V.5.30 Release 1)
* OS : not be used
* Programmer : RENESAS Semiconductor Training Center
* Note : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
****************************************************************************
* COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION
* AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
****************************************************************************
* History :
*""FILE COMMENT END""*******************************************************/
/* include file */
#include "defs.h" /* define common symbol */
#include "oaks8lib.h" /* for function to deal with OAKS8-LCDBoard peripheral */
/* define function prototype */
int main(void);
/* define and initialize one-dimensional array */
/* array with 20 elements(value is optional) */
/*""FUNC COMMENT""*************************************************************
* ID : 1.0
* function name : main
* function : input elements of array as operand from key matrix
* : get muximum, minimum, average of provided array
* : display result in LCD
* parameter : none
* return : result 0:normal end
* function used : none
* notice : none
* History :
*""FUNC COMMENT END""********************************************************/
int main(void)
{
return 0;
}
/*""FUNC COMMENT""*************************************************************
* ID : 1.1
* function name : get_maximum
* function : get muximum from the first element of an array to decided element
* parameter : number:number of array element of operand
* return : maximum
* function used : none
* notice : none
* History :
*""FUNC COMMENT END""********************************************************/
/* define function to get maximum */
/*""FUNC COMMENT""*************************************************************
* ID : 1.2
* function name : get_minimum
* function : get minimum from the first element of an array to decided element
* parameter : number:number of array element of operand
* return : minimum
* function used : none
* notice : none
* History :
*""FUNC COMMENT END""********************************************************/
/* define function to get minimum */
/*""FUNC COMMENT""*************************************************************
* ID : 1.3
* function name : get_average
* function : get average from the first element of an array to decided element
* parameter : number:number of array element of operand
* return : average
* function used : none
* notice : none
* History :
*""FUNC COMMENT END""********************************************************/
/* define function to get minimum */
/*""FUNC COMMENT""*************************************************************
* ID : 1.4
* function name : display_result
* function : display calculation result in LCD
* parameter : rslt:calculation result to be displayed
* return : average
* function used : none
* notice : none
* History :
*""FUNC COMMENT END""********************************************************/
/* define function to display result in LCD */
/******************************************************************************
end of file
******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -