⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmxint.c

📁 CMEX source code RTOS for atmel atmega128
💻 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 + -