intr.h
来自「realtime RTOS NEW」· C头文件 代码 · 共 33 行
H
33 行
/*
===============================================================================
| Copyright (C) 2004 RuanHaiShen, All rights reserved.
| SUMMARY:
| Interrupt and clock support.
|
| DESCRIPTION:
| See http://www.01s.org for documentation, latest information, license
| and contact details.
| email:ruanhaishen@01s.org
=============================================================================*/
#ifndef __arch_intr_h__
#define __arch_intr_h__
/*===========================================================================*/
#define DISABLE_IRQ asm { cli }
#define ENABLE_IRQ asm { sti }
#define CRITICAL_ENTER asm { pushf; cli }
#define CRITICAL_EXIT asm { popf }
#define TICKS_PER_SECOND 50
/*contex.asm-------------------------------------------------------*/
void __timer_irs(void);
void __switch_start(sp_t);
void __switch_to(sp_t*, sp_t);
/*===========================================================================*/
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?