intr.h
来自「realtime RTOS NEW」· C头文件 代码 · 共 32 行
H
32 行
/*
===============================================================================
| 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 + =
减小字号Ctrl + -
显示快捷键?