📄 cmxint.c
字号:
// #include <io8515.h>
#include <iom103.h>
#include <cxfuncs.h>
extern byte t0_cnt;
extern byte go_ahead;
extern char int_mesg[];
#pragma vector=TIMER0_COMP_vect
__interrupt void TIMER0_COMP_interrupt(void)
{
K_OS_Intrp_Entry();
K_OS_Tick_Update(); /* call the CMX tick function */
if (go_ahead) /* see if task has enable message sending */
{
if (++t0_cnt == 2) /* see if count = 2. */
{
t0_cnt = 0; /* reset count */
K_Intrp_Mesg_Send(0,int_mesg);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -