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

📄 intr.h

📁 realtime RTOS NEW
💻 H
字号:
/*
===============================================================================
| 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             do { EA = 0; } while (0)
#define ENABLE_IRQ              do { EA = 1; } while (0)
#define CRITICAL_ENTER          do { EA = 0; } while (0) 
#define CRITICAL_EXIT           do { EA = 1; } while (0) 

#define TICKS_PER_SECOND        50

/*contex.asm-------------------------------------------------------*/
void __switch_start(sp_t);
void __switch_to(sp_t __p_*, sp_t);
void __entry_init(void);


/*===========================================================================*/
#endif

⌨️ 快捷键说明

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