參數(shù)資料
型號(hào): RX78K4
英文描述: 78K/IV Series Real-Time OS Fundamental | User's Manual[01/1997]
中文描述: 78K/IV系列實(shí)時(shí)操作系統(tǒng)的基本|用戶(hù)手冊(cè)[01/1997]
文件頁(yè)數(shù): 80/96頁(yè)
文件大?。?/td> 265K
代理商: RX78K4
71
APPENDIX 2 DESCRIPTION IN C LANGUAGE
C Compiler CC78K4 of version 2.00 or above supports tasks and interrupt handlers.
Examples of describing a task and an interrupt handler in the C language are shown below.
Task
Description format
Example
Remark
No external reference declaration is necessary for the “ext_tsk” system call.
Interrupt handler
Description format
Example
Remark
External reference declaration is not necessary for system calls “ret_int” and “ret_wup”.
For details, refer to the User’s Manual of the C Compiler.
#pragma rtos_task [task function name]
#pragma rtos_interrupt [(interrupt request name)(interrupt handler name){stack
selection specification]
Remark
stack selection specification: sp = array name [
ò
offset position]
#pragma rtos_task sample
extern void slp_tsk (void);
/* External reference of slp_tsk */
void sample()
{
slp_tsk();
ext_tsk();
}
#pragma rtos_interrupt INTPO sample_h sp=int_stack
ò
10
unsigned char int_stack[10];
extern char iset_flg(char*);
extern char flag_idl;
/* Allocates stack area for interrupt */
/* External reference declaration of iset_flg */
/* External reference declaration of event flag ID */
sample_h()
{
iset_flg(&flag_idl);
ret_int();
}
相關(guān)PDF資料
PDF描述
RXB06150W TRANSISTOR | BJT | NPN | 15V V(BR)CEO | FO-91VAR
RXB12350Y Bipolar NPN UHF/Microwave Transisitor
RXE005 Poly Switch PTC DEVICES
RXE010S Poly Switch PTC DEVICES
RXE025 MULTISICHERUNG RXE 0.25A
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
RX-7P 制造商:SUMIDA 制造商全稱(chēng):Sumida Corporation 功能描述:POWER INDUCTORS
RX7P-NP-101K 制造商:SUMIDA 制造商全稱(chēng):Sumida Corporation 功能描述:POWER INDUCTORS
RX7P-NP-102K 制造商:SUMIDA 制造商全稱(chēng):Sumida Corporation 功能描述:POWER INDUCTORS
RX7P-NP-121K 制造商:SUMIDA 制造商全稱(chēng):Sumida Corporation 功能描述:POWER INDUCTORS
RX7P-NP-122K 制造商:SUMIDA 制造商全稱(chēng):Sumida Corporation 功能描述:POWER INDUCTORS