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

📄 iss.c

📁 mips下的ucos
💻 C
字号:
/* 
   Copyright (C) 2001, Lexra, Inc.
   Contributed by Pascal Cleve (pascal@lexra.com).

   This code is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

#include "includes.h"

int IntClear __attribute__ ((section (".sio")));

#define IRQTIMER	0	/* Use interrupt 0 for the timer	*/

void OSTickISR (void)
{
  IntClear = 1 << (2+IRQTIMER);	// Clear the interrupt

  // Call back uCOS
  OSTimeTick();
}


void BSPInit()
{
  // The first 2 interrupts are software
  IRQInstall(2+IRQTIMER, OSTickISR);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -